Modifica

Condividi tramite


BamlLocalizationDictionary.Add Method

Definition

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)

Parameters

key
BamlLocalizableResourceKey

A key for the resource.

value
BamlLocalizableResource

An object that contains the resource.

Exceptions

key is null.

An item with the same key already exists.

Applies to

See also