Delen via


ModelStateDictionary.Contains Method

Determines whether the model-state dictionary contains a specific value.

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

Syntax

'Declaration
Public Function Contains ( _
    item As KeyValuePair(Of String, ModelState) _
) As Boolean
public bool Contains(
    KeyValuePair<string, ModelState> item
)
public:
virtual bool Contains(
    KeyValuePair<String^, ModelState^> item
) sealed

Parameters

Return Value

Type: System.Boolean
true if item is found in the model-state dictionary; otherwise, false.

Implements

ICollection<T>.Contains(T)

See Also

Reference

ModelStateDictionary Class

System.Web.Mvc Namespace