Items Property

ValidationContext.Items Property


Gets the dictionary of key/value pairs that is associated with this context.

Namespace:   System.ComponentModel.DataAnnotations
Assembly:  System.ComponentModel.DataAnnotations (in System.ComponentModel.DataAnnotations.dll)

public IDictionary<objectobject> Items { get; }

Property Value

Type: System.Collections.Generic.IDictionary<ObjectObject>

The dictionary of the key/value pairs for this context.

This property is never null, but the dictionary can be empty. Changes made to items in this dictionary are reflected in the original dictionary that is specified in the constructor.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Available since 3.0
Return to top
© 2015 Microsoft