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 that is previously set for a bindable property. |
ClearValue(BindablePropertyKey) |
Clears any value that is previously set for a bindable property, identified by its key. |
ClearValue(BindableProperty)
Clears any value that is previously set for a bindable property.
public:
void ClearValue(Microsoft::Maui::Controls::BindableProperty ^ property);
public void ClearValue (Microsoft.Maui.Controls.BindableProperty property);
member this.ClearValue : Microsoft.Maui.Controls.BindableProperty -> unit
Public Sub ClearValue (property As BindableProperty)
Parameters
- property
- BindableProperty
The BindableProperty to clear the value for.
Exceptions
Thrown when property
is null
.
Remarks
When property
is read-only, nothing will happen.
Applies to
ClearValue(BindablePropertyKey)
Clears any value that is previously set for a bindable property, identified by its key.
public:
void ClearValue(Microsoft::Maui::Controls::BindablePropertyKey ^ propertyKey);
public void ClearValue (Microsoft.Maui.Controls.BindablePropertyKey propertyKey);
member this.ClearValue : Microsoft.Maui.Controls.BindablePropertyKey -> unit
Public Sub ClearValue (propertyKey As BindablePropertyKey)
Parameters
- propertyKey
- BindablePropertyKey
The key that identifies the bindable property to clear the value for.
Exceptions
Thrown when propertyKey
is null
.
Thrown when propertyKey
is a read-only property.
Remarks
Calling this method on a readonly property will result in an InvalidOperationException.
Applies to
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin