แก้ไข

แชร์ผ่าน


ModelItemDictionary.Remove Method

Definition

Removes the item from the dictionary.

Overloads

Remove(ModelItem)

Removes the item with the specified key from the dictionary.

Remove(Object)

Removes the item from the dictionary.

Remove(ModelItem)

Removes the item with the specified key from the dictionary.

public:
 abstract bool Remove(System::Activities::Presentation::Model::ModelItem ^ key);
public abstract bool Remove (System.Activities.Presentation.Model.ModelItem key);
abstract member Remove : System.Activities.Presentation.Model.ModelItem -> bool
Public MustOverride Function Remove (key As ModelItem) As Boolean

Parameters

key
ModelItem

The key of the element to remove.

Returns

true if the item exists; otherwise, false.

Implements

Exceptions

If the key is null.

If the dictionary is read-only.

Remarks

This method does nothing if the item does not exist in the collection.

Applies to

Remove(Object)

Removes the item from the dictionary.

public:
 abstract bool Remove(System::Object ^ key);
public abstract bool Remove (object key);
abstract member Remove : obj -> bool
Public MustOverride Function Remove (key As Object) As Boolean

Parameters

key
Object

The item to remove using the key as the search criterion.

Returns

true if the item exists; otherwise, false.

Exceptions

If the key is null.

If the dictionary is read-only.

Remarks

This method does nothing if the item does not exist in the collection.

Applies to