ModelStateDictionary.ContainsKey Method (String)
Determines whether the model-state dictionary contains the specified key.
Namespace: System.Web.Http.ModelBinding
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
public bool ContainsKey(
string key
)
public:
virtual bool ContainsKey(
String^ key
) sealed
abstract ContainsKey :
key:string -> bool
override ContainsKey :
key:string -> bool
Public Function ContainsKey (
key As String
) As Boolean
Parameters
key
Type: System.StringThe key to locate in the model-state dictionary.
Return Value
Type: System.Boolean
true if the model-state dictionary contains the specified key; otherwise, false.
Implements
IDictionary<TKey, TValue>.ContainsKey(TKey)
See Also
ModelStateDictionary Class
System.Web.Http.ModelBinding Namespace
Return to top