BamlLocalizationDictionary.Add Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.