ModelStateDictionary.ContainsKey(String) Method    
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether the model-state dictionary contains the specified key.
public:
 virtual bool ContainsKey(System::String ^ key);public bool ContainsKey(string key);abstract member ContainsKey : string -> bool
override this.ContainsKey : string -> boolPublic Function ContainsKey (key As String) As BooleanParameters
- key
- String
The key.
Returns
true if the dictionary contains the specified key; otherwise, false.