ValueProviderDictionary.Add メソッド

定義

オーバーロード

Add(KeyValuePair<String,ValueProviderResult>)

指定された項目を値プロバイダーのコレクションに追加します。

Add(String, Object)

指定されたキーと値を持つ要素を値プロバイダーのコレクションに追加します。

Add(String, ValueProviderResult)

指定されたキーと値を持つ要素を値プロバイダーのコレクションに追加します。

Add(KeyValuePair<String,ValueProviderResult>)

指定された項目を値プロバイダーのコレクションに追加します。

public void Add (System.Collections.Generic.KeyValuePair<string,System.Web.Mvc.ValueProviderResult> item);
abstract member Add : System.Collections.Generic.KeyValuePair<string, System.Web.Mvc.ValueProviderResult> -> unit
override this.Add : System.Collections.Generic.KeyValuePair<string, System.Web.Mvc.ValueProviderResult> -> unit
Public Sub Add (item As KeyValuePair(Of String, ValueProviderResult))

パラメーター

item
KeyValuePair<String,ValueProviderResult>

ICollection<T> オブジェクトに追加するオブジェクト。

実装

例外

ICollection<T> が読み取り専用です。

適用対象

Add(String, Object)

指定されたキーと値を持つ要素を値プロバイダーのコレクションに追加します。

public void Add (string key, object value);
member this.Add : string * obj -> unit
Public Sub Add (key As String, value As Object)

パラメーター

key
String

追加する要素のキー。

value
Object

追加する要素の値。

例外

IDictionary<TKey,TValue> が読み取り専用です。

key が null です。

指定したキーを持つ要素は、 オブジェクトに既に IDictionary<TKey,TValue> 存在します。

適用対象

Add(String, ValueProviderResult)

指定されたキーと値を持つ要素を値プロバイダーのコレクションに追加します。

public void Add (string key, System.Web.Mvc.ValueProviderResult value);
abstract member Add : string * System.Web.Mvc.ValueProviderResult -> unit
override this.Add : string * System.Web.Mvc.ValueProviderResult -> unit
Public Sub Add (key As String, value As ValueProviderResult)

パラメーター

key
String

追加する要素のキー。

value
ValueProviderResult

追加する要素の値。

実装

例外

IDictionary<TKey,TValue> が読み取り専用です。

key が null です。

指定したキーを持つ要素は、 オブジェクトに既に IDictionary<TKey,TValue> 存在します。

適用対象