Udostępnij za pośrednictwem


PropertyCollection.RemoveProperty(Object) Method

Definition

Removes the property associated with the specified key.

public:
 bool RemoveProperty(System::Object ^ key);
public:
 bool RemoveProperty(Platform::Object ^ key);
bool RemoveProperty(winrt::Windows::Foundation::IInspectable const & key);
public bool RemoveProperty (object key);
member this.RemoveProperty : obj -> bool
Public Function RemoveProperty (key As Object) As Boolean

Parameters

key
Object

The key of the property to remove.

Returns

true if the property was found and removed, false if the property was not found.

Exceptions

key is null.

Applies to