BindableObject.SetValue Metodo

Definizione

Overload

SetValue(BindableProperty, Object)

Imposta il valore della proprietà associabile specificata.

SetValue(BindablePropertyKey, Object)

Imposta il valore della proprietà associabile specificata.

SetValue(BindableProperty, Object)

Origine:
BindableObject.cs
Origine:
BindableObject.cs

Imposta il valore della proprietà associabile specificata.

public:
 void SetValue(Microsoft::Maui::Controls::BindableProperty ^ property, System::Object ^ value);
public void SetValue (Microsoft.Maui.Controls.BindableProperty property, object value);
member this.SetValue : Microsoft.Maui.Controls.BindableProperty * obj -> unit
Public Sub SetValue (property As BindableProperty, value As Object)

Parametri

property
BindableProperty

Proprietà associabile in cui assegnare un valore.

value
Object

Valore da impostare.

Eccezioni

Generata quando property è null.

Commenti

Se property è di sola lettura, non verrà eseguita alcuna operazione.

Si applica a

SetValue(BindablePropertyKey, Object)

Origine:
BindableObject.cs
Origine:
BindableObject.cs

Imposta il valore della proprietà associabile specificata.

public:
 void SetValue(Microsoft::Maui::Controls::BindablePropertyKey ^ propertyKey, System::Object ^ value);
public void SetValue (Microsoft.Maui.Controls.BindablePropertyKey propertyKey, object value);
member this.SetValue : Microsoft.Maui.Controls.BindablePropertyKey * obj -> unit
Public Sub SetValue (propertyKey As BindablePropertyKey, value As Object)

Parametri

propertyKey
BindablePropertyKey

Chiave che identifica la proprietà associabile a cui assegnare il valore.

value
Object

Valore da impostare.

Eccezioni

Generata quando propertyKey è null.

Generata quando la proprietà associabile identificata da propertyKey è di sola lettura.

Si applica a