Share via


BindableObject.IsSet(BindableProperty) Methode

Definition

Bestimmt, ob eine bindbare Eigenschaft vorhanden ist und über einen festgelegten Wert verfügt.

public:
 bool IsSet(Microsoft::Maui::Controls::BindableProperty ^ targetProperty);
public bool IsSet (Microsoft.Maui.Controls.BindableProperty targetProperty);
member this.IsSet : Microsoft.Maui.Controls.BindableProperty -> bool
Public Function IsSet (targetProperty As BindableProperty) As Boolean

Parameter

targetProperty
BindableProperty

Die bindbare Eigenschaft, um zu überprüfen, ob derzeit ein Wert festgelegt ist.

Gibt zurück

true, wenn die Zieleigenschaft vorhanden ist und festgelegt wurde. Andernfalls false.

Ausnahmen

Wird ausgelöst, wenn targetProperty gleich null ist.

Gilt für: