Udostępnij za pośrednictwem


ModelBinderDictionary.ContainsKey Method

Determines whether the model binder dictionary contains an element that has the specified key.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Public Function ContainsKey ( _
    key As Type _
) As Boolean
public bool ContainsKey(
    Type key
)
public:
virtual bool ContainsKey(
    Type^ key
) sealed

Parameters

Return Value

Type: System.Boolean
true if the model binder dictionary contains an element that has the specified key; otherwise, false.

Implements

IDictionary<TKey, TValue>.ContainsKey(TKey)

Exceptions

Exception Condition
ArgumentNullException

key is null reference (Nothing in Visual Basic).

See Also

Reference

ModelBinderDictionary Class

System.Web.Mvc Namespace