Compartilhar via


ViewDataDictionary.Keys Property

Gets a collection that contains the keys of this dictionary.

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

Syntax

'Declaration
Public ReadOnly Property Keys As ICollection(Of String)
    Get
public ICollection<string> Keys { get; }
public:
virtual property ICollection<String^>^ Keys {
    ICollection<String^>^ get () sealed;
}

Property Value

Type: System.Collections.Generic.ICollection<String>
A collection that contains the keys of the object that implements IDictionary<TKey, TValue>.

Implements

IDictionary<TKey, TValue>.Keys

See Also

Reference

ViewDataDictionary Class

System.Web.Mvc Namespace