ModelStateDictionary.Remove Method (KeyValuePair(Of String, ModelState))

.NET Framework (current version)
 

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

Namespace:   System.Web.ModelBinding
Assembly:  System.Web (in System.Web.dll)

Public Function Remove (
	item As KeyValuePair(Of String, ModelState)
) As Boolean

Parameters

item
Type: System.Collections.Generic.KeyValuePair(Of String, ModelState)

The item to remove.

Return Value

Type: System.Boolean

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.

.NET Framework
Available since 4.5
Return to top
Show: