Share via


ModelStateDictionary.Contains Method

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

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

Syntax

'Declaration
Public Function Contains ( _
    item As KeyValuePair(Of String, ModelState) _
) As Boolean
'Usage
Dim instance As ModelStateDictionary
Dim item As KeyValuePair(Of String, ModelState)
Dim returnValue As Boolean

returnValue = instance.Contains(item)
public bool Contains(
    KeyValuePair<string, ModelState> item
)
public:
virtual bool Contains(
    KeyValuePair<String^, ModelState^> item
) sealed
abstract Contains : 
        item:KeyValuePair<string, ModelState> -> bool 
override Contains : 
        item:KeyValuePair<string, ModelState> -> bool 
public final function Contains(
    item : KeyValuePair<String, ModelState>
) : boolean

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.Http.ModelBinding Namespace