Επεξεργασία

Κοινή χρήση μέσω


LocalizationExtenderProvider(ISite, IComponent) Constructor

Definition

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

public:
 LocalizationExtenderProvider(System::ComponentModel::ISite ^ serviceProvider, System::ComponentModel::IComponent ^ baseComponent);
public LocalizationExtenderProvider (System.ComponentModel.ISite serviceProvider, System.ComponentModel.IComponent baseComponent);
new System.ComponentModel.Design.LocalizationExtenderProvider : System.ComponentModel.ISite * System.ComponentModel.IComponent -> System.ComponentModel.Design.LocalizationExtenderProvider
Public Sub New (serviceProvider As ISite, baseComponent As IComponent)

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.

// Adds a LocalizationExtenderProvider that provides localization support properties to the specified component.
extender = gcnew LocalizationExtenderProvider( this->component->Site,this->component );
// Adds a LocalizationExtenderProvider that provides localization support properties to the specified component.
extender = new LocalizationExtenderProvider(this.component.Site, this.component);
' Adds a LocalizationExtenderProvider that provides localization support properties to the specified component.
extender = New LocalizationExtenderProvider(Me.component_.Site, Me.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