ViewDataDictionary.ContainsKey Method

Visual Studio 2010

Determines whether the collection 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

Parameters

key
Type: System.String
The key of the element to locate in the collection.

Return Value

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

Implements

IDictionary(Of TKey, TValue).ContainsKey(TKey)

ExceptionCondition
ArgumentNullException

key is Nothing.

Community Additions

ADD
Show: