BamlLocalizationDictionary.Add(BamlLocalizableResourceKey, BamlLocalizableResource) メソッド

定義

指定したキーおよび値を持つ項目を BamlLocalizationDictionary に追加します。Adds an item with the provided key and value to the BamlLocalizationDictionary.

public:
 void Add(System::Windows::Markup::Localizer::BamlLocalizableResourceKey ^ key, System::Windows::Markup::Localizer::BamlLocalizableResource ^ value);
public void Add (System.Windows.Markup.Localizer.BamlLocalizableResourceKey key, System.Windows.Markup.Localizer.BamlLocalizableResource value);
member this.Add : System.Windows.Markup.Localizer.BamlLocalizableResourceKey * System.Windows.Markup.Localizer.BamlLocalizableResource -> unit
Public Sub Add (key As BamlLocalizableResourceKey, value As BamlLocalizableResource)

パラメーター

key
BamlLocalizableResourceKey

リソースのキー。A key for the resource.

value
BamlLocalizableResource

リソースが格納されているオブジェクト。An object that contains the resource.

例外

keynullです。key is null.

同じキーを持つ項目が既に存在します。An item with the same key already exists.

適用対象

こちらもご覧ください