ModelStateDictionary.ContainsKey Method
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
'Declaration
Public Function ContainsKey ( _
key As String _
) As Boolean
'Usage
Dim instance As ModelStateDictionary
Dim key As String
Dim returnValue As Boolean
returnValue = instance.ContainsKey(key)
public bool ContainsKey(
string key
)
public:
virtual bool ContainsKey(
String^ key
) sealed
abstract ContainsKey :
key:string -> bool
override ContainsKey :
key:string -> bool
public final function ContainsKey(
key : String
) : boolean
Parameters
- key
Type: System.String
The 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)