Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Contains Method

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)

public bool Contains(
	KeyValuePair<string, ModelState> item


Type: System.Collections.Generic.KeyValuePair<StringModelState>

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.

Return to top
© 2015 Microsoft