Edit

Share via


CodeDomLocalizationProvider Constructors

Definition

Initializes a new instance of the CodeDomLocalizationProvider class.

Overloads

CodeDomLocalizationProvider(IServiceProvider, CodeDomLocalizationModel)

Initializes a new instance of the CodeDomLocalizationProvider class.

CodeDomLocalizationProvider(IServiceProvider, CodeDomLocalizationModel, CultureInfo[])

Initializes a new instance of the CodeDomLocalizationProvider class.

CodeDomLocalizationProvider(IServiceProvider, CodeDomLocalizationModel)

Initializes a new instance of the CodeDomLocalizationProvider class.

public:
 CodeDomLocalizationProvider(IServiceProvider ^ provider, System::ComponentModel::Design::Serialization::CodeDomLocalizationModel model);
public CodeDomLocalizationProvider (IServiceProvider provider, System.ComponentModel.Design.Serialization.CodeDomLocalizationModel model);
new System.ComponentModel.Design.Serialization.CodeDomLocalizationProvider : IServiceProvider * System.ComponentModel.Design.Serialization.CodeDomLocalizationModel -> System.ComponentModel.Design.Serialization.CodeDomLocalizationProvider
Public Sub New (provider As IServiceProvider, model As CodeDomLocalizationModel)

Parameters

provider
IServiceProvider

An IServiceProvider used by the localization provider to add its extender properties.

model
CodeDomLocalizationModel

A CodeDomLocalizationModel value indicating the localization model to be used by the CodeDOM resource adapter.

Remarks

The CodeDomLocalizationProvider constructor creates a new adapter and attaches it to the serialization manager. This adds itself as a serializer for resources into the serialization manager, and, if not already added, adds itself as an extender provider to the root component.

If the model parameter is not None, the CodeDomLocalizationProvider provides the Language and Localizable properties.

See also

Applies to

CodeDomLocalizationProvider(IServiceProvider, CodeDomLocalizationModel, CultureInfo[])

Initializes a new instance of the CodeDomLocalizationProvider class.

public:
 CodeDomLocalizationProvider(IServiceProvider ^ provider, System::ComponentModel::Design::Serialization::CodeDomLocalizationModel model, cli::array <System::Globalization::CultureInfo ^> ^ supportedCultures);
public CodeDomLocalizationProvider (IServiceProvider provider, System.ComponentModel.Design.Serialization.CodeDomLocalizationModel model, System.Globalization.CultureInfo[] supportedCultures);
public CodeDomLocalizationProvider (IServiceProvider provider, System.ComponentModel.Design.Serialization.CodeDomLocalizationModel model, System.Globalization.CultureInfo?[] supportedCultures);
new System.ComponentModel.Design.Serialization.CodeDomLocalizationProvider : IServiceProvider * System.ComponentModel.Design.Serialization.CodeDomLocalizationModel * System.Globalization.CultureInfo[] -> System.ComponentModel.Design.Serialization.CodeDomLocalizationProvider
Public Sub New (provider As IServiceProvider, model As CodeDomLocalizationModel, supportedCultures As CultureInfo())

Parameters

provider
IServiceProvider

An IServiceProvider used by the localization provider to add its extender properties.

model
CodeDomLocalizationModel

A CodeDomLocalizationModel value indicating the localization model to be used by the CodeDOM resource adapter.

supportedCultures
CultureInfo[]

An array of cultures that this resource adapter should support.

Remarks

The CodeDomLocalizationProvider constructor creates a new adapter and attaches it to the serialization manager. This adds itself as a serializer for resources into the serialization manager, and, if not already added, adds itself as an extender provider to the root component.

If the model parameter is not None, the CodeDomLocalizationProvider provides the Language and Localizable properties.

If supportedCultures is not provided, the default is all cultures that are currently installed on the computer. If an array of cultures is provided, and it includes cultures that are not installed on the computer, those cultures are not available.

See also

Applies to