ValueProviderDictionary.ContainsKey Method
Determines whether the collection of value providers contains an element that has the specified key.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
'Declaration Public Function ContainsKey ( _ key As String _ ) As Boolean 'Usage Dim instance As ValueProviderDictionary Dim key As String Dim returnValue As Boolean returnValue = instance.ContainsKey(key)
Parameters
- key
- Type: System.String
The key of the element to find in the IDictionary(Of TKey, TValue) instance.
Return Value
Type: System.Booleantrue if the collection of value providers contains an element that has the key; otherwise, false.
Implements
IDictionary(Of TKey, TValue).ContainsKey(TKey)| Exception | Condition |
|---|---|
| ArgumentNullException | key is Nothing. |
Show: