Muokkaa

Jaa


ICollectionContract<C>.Remove(C) Method

Definition

Removes the first occurrence of a specific IContract from the ICollectionContract<C>.

public:
 bool Remove(C item);
public bool Remove (C item);
abstract member Remove : 'C -> bool
Public Function Remove (item As C) As Boolean

Parameters

item
C

The IContract to remove from the ICollectionContract<C>.

Returns

true if item is successfully removed; otherwise, false. This method also returns false if item was not found in the ICollectionContract<C>.

Exceptions

Remarks

To determine whether an ICollectionContract<C> is read-only, call the GetIsReadOnly method.

Applies to