ICollectionContract<C>.Remove(C) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
移除 中 中 特定節點的首次出現IContractICollectionContract<C>。
public:
bool Remove(C item);
public bool Remove(C item);
abstract member Remove : 'C -> bool
Public Function Remove (item As C) As Boolean
參數
- item
- C
傳回
true 若 item 成功移除;否則, false。 如果在 List
例外狀況
備註
要判斷 a ICollectionContract<C> 是否為唯讀,請呼叫該 GetIsReadOnly 方法。