Share via


PropertyBag.Remove(Object) Method

Definition

Deletes the item with the specified key from the collection.

public:
 virtual void Remove(System::Object ^ key);
public void Remove (object key);
abstract member Remove : obj -> unit
override this.Remove : obj -> unit
Public Sub Remove (key As Object)

Parameters

key
Object

The key of the item to remove.

Implements

Exceptions

The property bag is tracking state or is read-only.

Applies to