Edit

Share via


LocalizationExtenderProvider Class

Definition

Caution

This class has been deprecated. Use CodeDomLocalizationProvider instead. http://go.microsoft.com/fwlink/?linkid=14202

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

public ref class LocalizationExtenderProvider : IDisposable, System::ComponentModel::IExtenderProvider
public class LocalizationExtenderProvider : IDisposable, System.ComponentModel.IExtenderProvider
[System.Obsolete("This class has been deprecated. Use CodeDomLocalizationProvider instead.  http://go.microsoft.com/fwlink/?linkid=14202")]
public class LocalizationExtenderProvider : IDisposable, System.ComponentModel.IExtenderProvider
type LocalizationExtenderProvider = class
    interface IExtenderProvider
    interface IDisposable
[<System.Obsolete("This class has been deprecated. Use CodeDomLocalizationProvider instead.  http://go.microsoft.com/fwlink/?linkid=14202")>]
type LocalizationExtenderProvider = class
    interface IExtenderProvider
    interface IDisposable
Public Class LocalizationExtenderProvider
Implements IDisposable, IExtenderProvider
Inheritance
LocalizationExtenderProvider
Attributes
Implements

Remarks

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.

Constructors

LocalizationExtenderProvider(ISite, IComponent)

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

Methods

CanExtend(Object)

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

Dispose()

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

Dispose(Boolean)

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

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetLanguage(Object)

Gets the current resource culture for the specified object.

GetLoadLanguage(Object)

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

GetLocalizable(Object)

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

GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ResetLanguage(Object)

Resets the resource culture for the specified object.

SetLanguage(Object, CultureInfo)

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

SetLocalizable(Object, Boolean)

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

ShouldSerializeLanguage(Object)

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

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to