ModelStateDictionary.Contains Method (KeyValuePair<String, ModelState>)
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
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 Function Contains (
item As KeyValuePair(Of String, ModelState)
) As Boolean
Parameters
item
Type: System.Collections.Generic.KeyValuePair<String, ModelState>The object to locate in the model-state dictionary.
Return Value
Type: System.Boolean
true if item is found in the model-state dictionary; otherwise, false.
Implements
See Also
ModelStateDictionary Class
System.Web.Http.ModelBinding Namespace
Return to top