LocalizationExtenderProvider Class

 
System_CAPS_noteNote

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)

System.Object
  System.ComponentModel.Design.LocalizationExtenderProvider

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

NameDescription
System_CAPS_pubmethodLocalizationExtenderProvider(ISite, IComponent)

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

NameDescription
System_CAPS_pubmethodCanExtend(Object)

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

System_CAPS_pubmethodDispose()

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

System_CAPS_protmethodDispose(Boolean)

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

System_CAPS_pubmethodEquals(Object)

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

System_CAPS_protmethodFinalize()

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

System_CAPS_pubmethodGetHashCode()

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

System_CAPS_pubmethodGetLanguage(Object)

Gets the current resource culture for the specified object.

System_CAPS_pubmethodGetLoadLanguage(Object)

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

System_CAPS_pubmethodGetLocalizable(Object)

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

System_CAPS_pubmethodGetType()

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

System_CAPS_protmethodMemberwiseClone()

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

System_CAPS_pubmethodResetLanguage(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.

System_CAPS_pubmethodShouldSerializeLanguage(Object)

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

System_CAPS_pubmethodToString()

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
Show: