Sdílet prostřednictvím


ModelStateDictionary.Count Property

Gets the number of key/value pairs 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 key/value pairs in the collection.

Implements

ICollection<T>.Count

See Also

Reference

ModelStateDictionary Class

System.Web.Mvc Namespace