BindableObject.ClearValue Method

Definition

Overloads

ClearValue(BindableProperty)

Clears any value set by SetValue for property.

ClearValue(BindablePropertyKey)

Clears any value set by SetValue for the property that is identified by propertyKey.

ClearValue(BindableProperty)

Clears any value set by SetValue for property.

public void ClearValue (Xamarin.Forms.BindableProperty property);
member this.ClearValue : Xamarin.Forms.BindableProperty -> unit

Parameters

property
BindableProperty

The BindableProperty to clear.

Remarks

Calling this method on a readonly property will result in an InvalidOperationException.

ClearValue(BindablePropertyKey)

Clears any value set by SetValue for the property that is identified by propertyKey.

public void ClearValue (Xamarin.Forms.BindablePropertyKey propertyKey);
member this.ClearValue : Xamarin.Forms.BindablePropertyKey -> unit

Parameters

propertyKey
BindablePropertyKey

The BindablePropertyKey that identifies the BindableProperty to clear.

Remarks

Calling this method on a readonly property will result in an InvalidOperationException.

Applies to