Breyta

Deila með


CodeDomLocalizationProvider Class

Definition

Provides CodeDOM resource serialization services. This class cannot be inherited.

public ref class CodeDomLocalizationProvider sealed : IDisposable, System::ComponentModel::Design::Serialization::IDesignerSerializationProvider
public sealed class CodeDomLocalizationProvider : IDisposable, System.ComponentModel.Design.Serialization.IDesignerSerializationProvider
type CodeDomLocalizationProvider = class
    interface IDisposable
    interface IDesignerSerializationProvider
Public NotInheritable Class CodeDomLocalizationProvider
Implements IDesignerSerializationProvider, IDisposable
Inheritance
CodeDomLocalizationProvider
Implements

Remarks

The CodeDomLocalizationProvider class is a serialization provider that provides a localization feature. It supports serializing to resources through IResourceService, and it adds two properties to the root component: Language and Localizable. If Localizable is set to true, this provider changes the way that component properties are generated and routes their values to a resource file. Two localization models are supported.

You can control the cultures that are offered and the style of localization with constructor parameters.

Constructors

CodeDomLocalizationProvider(IServiceProvider, CodeDomLocalizationModel, CultureInfo[])

Initializes a new instance of the CodeDomLocalizationProvider class.

CodeDomLocalizationProvider(IServiceProvider, CodeDomLocalizationModel)

Initializes a new instance of the CodeDomLocalizationProvider class.

Methods

Dispose()

Releases all resources used by the CodeDomLocalizationProvider.

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)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

IDesignerSerializationProvider.GetSerializer(IDesignerSerializationManager, Object, Type, Type)

For a description of this member, see GetSerializer(IDesignerSerializationManager, Object, Type, Type).

Applies to

See also