ValidationStateDictionary.Add 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Add(KeyValuePair<Object,ValidationStateEntry>) | |
Add(Object, ValidationStateEntry) |
Add(KeyValuePair<Object,ValidationStateEntry>)
- Source:
- ValidationStateDictionary.cs
- Source:
- ValidationStateDictionary.cs
- Source:
- ValidationStateDictionary.cs
将某项添加到 ICollection<T> 中。
public:
virtual void Add(System::Collections::Generic::KeyValuePair<System::Object ^, Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ValidationStateEntry ^> item);
public void Add (System.Collections.Generic.KeyValuePair<object,Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateEntry> item);
abstract member Add : System.Collections.Generic.KeyValuePair<obj, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateEntry> -> unit
override this.Add : System.Collections.Generic.KeyValuePair<obj, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateEntry> -> unit
Public Sub Add (item As KeyValuePair(Of Object, ValidationStateEntry))
参数
实现
适用于
Add(Object, ValidationStateEntry)
- Source:
- ValidationStateDictionary.cs
- Source:
- ValidationStateDictionary.cs
- Source:
- ValidationStateDictionary.cs
向 IDictionary<TKey,TValue> 添加一个带有所提供的键和值的元素。
public:
virtual void Add(System::Object ^ key, Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ValidationStateEntry ^ value);
public void Add (object key, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateEntry value);
abstract member Add : obj * Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateEntry -> unit
override this.Add : obj * Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateEntry -> unit
Public Sub Add (key As Object, value As ValidationStateEntry)
参数
- key
- Object
- value
- ValidationStateEntry