共用方式為


ValueProviderDictionary.Remove 方法

定義

多載

Remove(KeyValuePair<String,ValueProviderResult>)

從值提供者的集合移除指定之項目的第一個符合項目。

Remove(String)

從值提供者的集合中移除具有指定索引鍵的項目。

Remove(KeyValuePair<String,ValueProviderResult>)

從值提供者的集合移除指定之項目的第一個符合項目。

public bool Remove (System.Collections.Generic.KeyValuePair<string,System.Web.Mvc.ValueProviderResult> item);
abstract member Remove : System.Collections.Generic.KeyValuePair<string, System.Web.Mvc.ValueProviderResult> -> bool
override this.Remove : System.Collections.Generic.KeyValuePair<string, System.Web.Mvc.ValueProviderResult> -> bool
Public Function Remove (item As KeyValuePair(Of String, ValueProviderResult)) As Boolean

參數

item
KeyValuePair<String,ValueProviderResult>

要從 實例中移除的物件 ICollection<T>

傳回

如果已成功從集合中移除,則 item 為 true;否則為 false。 如果在 item 集合中找不到 ,這個方法也會傳回 false。

實作

例外狀況

適用於

Remove(String)

從值提供者的集合中移除具有指定索引鍵的項目。

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

要移除的項目索引鍵。

傳回

如果已成功移除專案,則為 true;否則為 false。 如果在 key 集合中找不到 ,這個方法也會傳回 false。

實作

例外狀況

key 為 null。

適用於