BindableObject.ClearValue Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ClearValue(BindableProperty) |
Clears any value set by SetValue for |
ClearValue(BindablePropertyKey) |
Clears any value set by SetValue for the property that is identified by |
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.
Applies to
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.