ViewDataDictionary.Count Property

Gets the number of elements in the collection.

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

Syntax

'Declaration
Public ReadOnly Property Count As Integer
    Get
public int Count { get; }
public:
virtual property int Count {
    int get () sealed;
}

Property Value

Type: System.Int32
The number of elements in the collection.

Implements

ICollection<T>.Count

See Also

Reference

ViewDataDictionary Class

System.Web.Mvc Namespace