ValidationContext.Items Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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<object, object> Items { get; }

Property Value

Type: System.Collections.Generic.IDictionary<Object, Object>

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 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Available since 3.0
Return to top