ValidationContext.Items Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the dictionary of key/value pairs that is associated with this context.
public:
property System::Collections::Generic::IDictionary<System::Object ^, System::Object ^> ^ Items { System::Collections::Generic::IDictionary<System::Object ^, System::Object ^> ^ get(); };
public System.Collections.Generic.IDictionary<object,object> Items { get; }
public System.Collections.Generic.IDictionary<object,object?> Items { get; }
member this.Items : System.Collections.Generic.IDictionary<obj, obj>
Public ReadOnly Property Items As IDictionary(Of Object, Object)
Property Value
The dictionary of the key/value pairs for this context.
Remarks
This property is never null, but the dictionary can be empty. Changes made to entries in this dictionary do not affect the original dictionary specified in the constructor.
Items is designed as a read-only input channel populated before validation begins. The validation pipeline does not guarantee attribute execution order beyond RequiredAttribute priority, and no built-in attribute mutates this dictionary during validation. Custom validators should treat it as read-only during validation execution. Mutating it from within a validator is unsupported and can produce race conditions under parallel asynchronous validation.