ValidationContext.Items 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取与此上下文关联的键/值对的字典。
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)
属性值
此上下文的键/值对的字典。
注解
此属性从不 null为空,但字典可以为空。 对此字典中的条目所做的更改不会影响构造函数中指定的原始字典。
Items 设计为在验证开始之前填充的只读输入通道。 验证管道不能保证超出优先级的属性执行顺序 RequiredAttribute ,并且验证期间没有内置属性会改变此字典。 自定义验证程序应在验证执行期间将其视为只读。 不支持从验证器内部对其进行静音,并且可以在并行异步验证下生成争用条件。