ValidationStateDictionary 类

定义

用于跟踪验证状态,以自定义模型对象的验证行为。

public ref class ValidationStateDictionary : System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<System::Object ^, Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ValidationStateEntry ^>>, System::Collections::Generic::IDictionary<System::Object ^, Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ValidationStateEntry ^>, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::Object ^, Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ValidationStateEntry ^>>, System::Collections::Generic::IReadOnlyCollection<System::Collections::Generic::KeyValuePair<System::Object ^, Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ValidationStateEntry ^>>, System::Collections::Generic::IReadOnlyDictionary<System::Object ^, Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ValidationStateEntry ^>
public class ValidationStateDictionary : System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<object,Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateEntry>>, System.Collections.Generic.IDictionary<object,Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateEntry>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<object,Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateEntry>>, System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<object,Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateEntry>>, System.Collections.Generic.IReadOnlyDictionary<object,Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateEntry>
type ValidationStateDictionary = class
    interface IDictionary<obj, ValidationStateEntry>
    interface ICollection<KeyValuePair<obj, ValidationStateEntry>>
    interface seq<KeyValuePair<obj, ValidationStateEntry>>
    interface IEnumerable
    interface IReadOnlyDictionary<obj, ValidationStateEntry>
    interface IReadOnlyCollection<KeyValuePair<obj, ValidationStateEntry>>
type ValidationStateDictionary = class
    interface ICollection<KeyValuePair<obj, ValidationStateEntry>>
    interface seq<KeyValuePair<obj, ValidationStateEntry>>
    interface IEnumerable
    interface IDictionary<obj, ValidationStateEntry>
    interface IReadOnlyCollection<KeyValuePair<obj, ValidationStateEntry>>
    interface IReadOnlyDictionary<obj, ValidationStateEntry>
Public Class ValidationStateDictionary
Implements ICollection(Of KeyValuePair(Of Object, ValidationStateEntry)), IDictionary(Of Object, ValidationStateEntry), IEnumerable(Of KeyValuePair(Of Object, ValidationStateEntry)), IReadOnlyCollection(Of KeyValuePair(Of Object, ValidationStateEntry)), IReadOnlyDictionary(Of Object, ValidationStateEntry)
继承
ValidationStateDictionary
实现

构造函数

ValidationStateDictionary()

创建一个新的 ValidationStateDictionary

属性

Count

用于跟踪验证状态,以自定义模型对象的验证行为。

IsReadOnly

用于跟踪验证状态,以自定义模型对象的验证行为。

Item[Object]

用于跟踪验证状态,以自定义模型对象的验证行为。

Keys

用于跟踪验证状态,以自定义模型对象的验证行为。

Values

用于跟踪验证状态,以自定义模型对象的验证行为。

方法

Add(KeyValuePair<Object,ValidationStateEntry>)

用于跟踪验证状态,以自定义模型对象的验证行为。

Add(Object, ValidationStateEntry)

用于跟踪验证状态,以自定义模型对象的验证行为。

Clear()

用于跟踪验证状态,以自定义模型对象的验证行为。

Contains(KeyValuePair<Object,ValidationStateEntry>)

用于跟踪验证状态,以自定义模型对象的验证行为。

ContainsKey(Object)

用于跟踪验证状态,以自定义模型对象的验证行为。

CopyTo(KeyValuePair<Object,ValidationStateEntry>[], Int32)

用于跟踪验证状态,以自定义模型对象的验证行为。

GetEnumerator()

用于跟踪验证状态,以自定义模型对象的验证行为。

Remove(KeyValuePair<Object,ValidationStateEntry>)

用于跟踪验证状态,以自定义模型对象的验证行为。

Remove(Object)

用于跟踪验证状态,以自定义模型对象的验证行为。

TryGetValue(Object, ValidationStateEntry)

用于跟踪验证状态,以自定义模型对象的验证行为。

显式接口实现

IDictionary<Object,ValidationStateEntry>.Item[Object]

用于跟踪验证状态,以自定义模型对象的验证行为。

IEnumerable.GetEnumerator()

用于跟踪验证状态,以自定义模型对象的验证行为。

IReadOnlyDictionary<Object,ValidationStateEntry>.Item[Object]

用于跟踪验证状态,以自定义模型对象的验证行为。

IReadOnlyDictionary<Object,ValidationStateEntry>.Keys

用于跟踪验证状态,以自定义模型对象的验证行为。

IReadOnlyDictionary<Object,ValidationStateEntry>.Values

用于跟踪验证状态,以自定义模型对象的验证行为。

适用于