Export (0) Print
Expand All

LocalizationExtenderProvider Constructor

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

[Visual Basic]
Public Sub New( _
   ByVal serviceProvider As ISite, _
   ByVal baseComponent As IComponent _
)
[C#]
public LocalizationExtenderProvider(
   ISite serviceProvider,
 IComponent baseComponent
);
[C++]
public: LocalizationExtenderProvider(
   ISite* serviceProvider,
 IComponent* baseComponent
);
[JScript]
public function LocalizationExtenderProvider(
   serviceProvider : ISite,
 baseComponent : IComponent
);

Parameters

serviceProvider
A service provider for the specified component.
baseComponent
The base component to localize.

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.

Example

[Visual Basic] 
' Adds a LocalizationExtenderProvider that provides localization support properties to the specified component.
extender = New LocalizationExtenderProvider(Me.component_.Site, Me.component_)

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

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

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

LocalizationExtenderProvider Class | LocalizationExtenderProvider Members | System.ComponentModel.Design Namespace

Show:
© 2014 Microsoft