ModelStateDictionary.Remove Method (String)

.NET Framework (current version)
 

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

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

Public Function Remove (
	key As String
) As Boolean

Parameters

key
Type: System.String

The key of 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: