LocalizationExtenderProvider Class


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

obsoleteCodeEntityT:System.ComponentModel.Design.Serialization.CodeDomLocalizationProvider Note: This API is now obsolete.

Provides design-time support for localization features to a root designer.

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


[<ObsoleteAttribute("This class has been deprecated. Use CodeDomLocalizationProvider instead.  http://go.microsoft.com/fwlink/?linkid=14202")>]
type LocalizationExtenderProvider = 
        interface IExtenderProvider
        interface IDisposable

System_CAPS_pubmethodLocalizationExtenderProvider(ISite, IComponent)

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


Indicates whether this object can provide its extender properties to the specified object.


Disposes of the resources (other than memory) used by the LocalizationExtenderProvider.


Releases the unmanaged resources used by the LocalizationExtenderProvider and optionally releases the managed resources.


Determines whether the specified object is equal to the current object.(Inherited from Object.)


Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)


Serves as the default hash function. (Inherited from Object.)


Gets the current resource culture for the specified object.


Gets the default resource culture to use when initializing the values of a localized object at design time.


Gets a value indicating whether the specified object supports resource localization.


Gets the Type of the current instance.(Inherited from Object.)


Creates a shallow copy of the current Object.(Inherited from Object.)


Resets the resource culture for the specified object.

System_CAPS_pubmethodSetLanguage(Object, CultureInfo)

Sets the current resource culture for the specified object to the specified resource culture.

System_CAPS_pubmethodSetLocalizable(Object, Boolean)

Sets a value indicating whether the specified object supports localized resources.


Gets a value indicating whether the specified object must have its localizable values persisted in a resource.


Returns a string that represents the current object.(Inherited from Object.)

LocalizationExtenderProvider can extend an IRootDesigner with a set of properties and methods that provide support for the .NET Framework localization architecture. For more about using resources, see Localization.

The localization support architecture enables designers to initialize component properties using resource files that can be swapped at run time to support a variety of languages, culture-specific styles and dynamically configurable features. You can use the methods of this class to enable designers and code generating serializers to load from resources and build initialization code that uses localization features.

The default serializers that ship with Visual Studio are already capable of localizing components and controls, but they only do so if they locate support for the .NET Framework localization architecture. To detect the presence of localization support, the serialization system must locate a public Boolean property named "Localizable" on the root designer component. If a serializer finds this property, it searches for a property of type CultureInfo named "Language" to determine the current resource configuration. Default serializers use these properties to determine if it should localize any localizable resources of the component, and if so, what CultureInfo format the resource information should be saved in.

The following code example adds a LocalizationExtenderProvider to a component.

No code example is currently available or this language may not be supported.

The following code example includes an example component and designer. The designer uses a LocalizationExtenderProvider to add localization support properties for the component.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top