CodeDomLocalizationProvider Constructor (IServiceProvider, CodeDomLocalizationModel, CultureInfo[])

 

Initializes a new instance of the CodeDomLocalizationProvider class.

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

public CodeDomLocalizationProvider(
	IServiceProvider provider,
	CodeDomLocalizationModel model,
	CultureInfo[] supportedCultures
)

Parameters

provider
Type: System.IServiceProvider

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

model
Type: System.ComponentModel.Design.Serialization.CodeDomLocalizationModel

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

supportedCultures
Type: System.Globalization.CultureInfo[]

An array of cultures that this resource adapter should support.

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.

.NET Framework
Available since 2.0
Return to top
Show: