LocalizationExtenderProvider Constructor (ISite^, IComponent^)

 

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

Namespace:   System.ComponentModel.Design
Assembly:  System.Design (in System.Design.dll)

public:
LocalizationExtenderProvider(
	ISite^ serviceProvider,
	IComponent^ baseComponent
)

Parameters

serviceProvider
Type: System.ComponentModel::ISite^

A service provider for the specified component.

baseComponent
Type: System.ComponentModel::IComponent^

The base component to localize.

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.

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 );

.NET Framework
Available since 1.1
Return to top
Show: