Editar

Compartir a través de


ModelStateDictionary.Remove Method

Definition

Removes an element from the dictionary.

Overloads

Remove(KeyValuePair<String,ModelState>)

Removes the first occurrence of the specified item from the model-state dictionary.

Remove(String)

Removes the item that has the specified key from the dictionary.

Remove(KeyValuePair<String,ModelState>)

Removes the first occurrence of the specified item from the model-state dictionary.

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

Parameters

item
KeyValuePair<String,ModelState>

The item to remove.

Returns

true if the item was successfully removed from the dictionary, or false if the item was not removed or was not found in the dictionary.

Implements

Applies to

Remove(String)

Removes the item that has the specified key from the dictionary.

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

Parameters

key
String

The key of the item to remove.

Returns

true if the item was successfully removed from the dictionary, or false if the item was not removed or was not found in the dictionary.

Implements

Applies to