共用方式為


ValidationStateDictionary.Add 方法

定義

多載

Add(KeyValuePair<Object,ValidationStateEntry>)
Add(Object, ValidationStateEntry)

Add(KeyValuePair<Object,ValidationStateEntry>)

來源:
ValidationStateDictionary.cs
來源:
ValidationStateDictionary.cs
來源:
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)

來源:
ValidationStateDictionary.cs
來源:
ValidationStateDictionary.cs
來源:
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

實作

適用於