ViewDataDictionary.Remove 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Remove(KeyValuePair<String,Object>) | |
Remove(String) |
Remove(KeyValuePair<String,Object>)
從 ICollection<T> 移除特定物件之第一個符合的元素。
public:
virtual bool Remove(System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^> item);
public bool Remove (System.Collections.Generic.KeyValuePair<string,object> item);
public bool Remove (System.Collections.Generic.KeyValuePair<string,object?> item);
abstract member Remove : System.Collections.Generic.KeyValuePair<string, obj> -> bool
override this.Remove : System.Collections.Generic.KeyValuePair<string, obj> -> bool
Public Function Remove (item As KeyValuePair(Of String, Object)) As Boolean
參數
- item
- KeyValuePair<String,Object>
傳回
實作
適用於
Remove(String)
從 IDictionary<TKey,TValue> 中移除具有指定之索引鍵的項目。
public:
virtual bool Remove(System::String ^ key);
public bool Remove (string key);
abstract member Remove : string -> bool
override this.Remove : string -> bool
Public Function Remove (key As String) As Boolean
參數
- key
- String