ModelStateDictionary.ContainsKey Method (String)

.NET Framework (current version)
 

Determines whether the model-state dictionary contains the specified key.

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

Public Function ContainsKey (
	key As String
) As Boolean

Parameters

key
Type: System.String

The key.

Return Value

Type: System.Boolean

true if the dictionary contains the specified key; otherwise, false.

.NET Framework
Available since 4.5
Return to top
Show: