ModelStateDictionary.Remove Method (String)

Removes the item that has the specified key from the model-state dictionary.

Namespace:  System.Web.WebPages.Html
Assembly:  System.Web.WebPages (in System.Web.WebPages.dll)

Syntax

'Declaration
Public Function Remove ( _
    key As String _
) As Boolean
'Usage
Dim instance As ModelStateDictionary 
Dim key As String 
Dim returnValue As Boolean 

returnValue = instance.Remove(key)
public bool Remove(
    string key
)
public:
virtual bool Remove(
    String^ key
) sealed
abstract Remove : 
        key:string -> bool  
override Remove : 
        key:string -> bool
public final function Remove(
    key : String
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the item was successfully removed from the model-state dictionary; false if the item was not removed or does not exist in the model-state dictionary.

Implements

IDictionary<TKey, TValue>.Remove(TKey)

See Also

Reference

ModelStateDictionary Class

Remove Overload

System.Web.WebPages.Html Namespace