Op Englesch liesen Editéieren

Deelen iwwer


LocalizationExtenderProvider(ISite, IComponent) Constructor

Definition

Initializes a new instance of the LocalizationExtenderProvider class using the specified service provider and base component.

C#
public LocalizationExtenderProvider(System.ComponentModel.ISite serviceProvider, System.ComponentModel.IComponent baseComponent);

Parameters

serviceProvider
ISite

A service provider for the specified component.

baseComponent
IComponent

The base component to localize.

Examples

The following code example creates a new LocalizationExtenderProvider object.

C#
// Adds a LocalizationExtenderProvider that provides localization support properties to the specified component.
extender = new LocalizationExtenderProvider(this.component.Site, this.component);

Remarks

By default, a new LocalizationExtenderProvider sets the current language to InvariantCulture, which is the generic and default language resource setting. This setting causes a designer to generate code that references the generic language resource. You can create other CultureInfo objects to represent and identify other localized resource data that a program can use at run time.

Applies to

Produkt Versiounen
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1