Partager via


ModelStateDictionary.Count Property

Gets the number of key/value pairs in the collection.

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

Syntax

'Declaration
Public ReadOnly Property Count As Integer
    Get
'Usage
Dim instance As ModelStateDictionary
Dim value As Integer

value = instance.Count
public int Count { get; }
public:
virtual property int Count {
    int get () sealed;
}
abstract Count : int
override Count : int
final function get Count () : int

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.Http.ModelBinding Namespace