Share via


ModelStateDictionary.Keys Property

Gets a collection that contains the keys in the dictionary.

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

Syntax

'Declaration
Public ReadOnly Property Keys As ICollection(Of String)
    Get
'Usage
Dim instance As ModelStateDictionary
Dim value As ICollection(Of String)

value = instance.Keys
public ICollection<string> Keys { get; }
public:
virtual property ICollection<String^>^ Keys {
    ICollection<String^>^ get () sealed;
}
abstract Keys : ICollection<string>
override Keys : ICollection<string>
final function get Keys () : ICollection<String>

Property Value

Type: System.Collections.Generic.ICollection<String>
A collection that contains the keys of the model-state dictionary.

Implements

IDictionary<TKey, TValue>.Keys

See Also

Reference

ModelStateDictionary Class

System.Web.Http.ModelBinding Namespace