CodeDomLocalizationProvider 類別

定義

提供 CodeDOM 資源序列化服務。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
繼承
CodeDomLocalizationProvider
實作

備註

CodeDomLocalizationProvider類別是提供當地語系化功能的序列化提供者。The CodeDomLocalizationProvider class is a serialization provider that provides a localization feature. 它支援透過IResourceService序列化至資源, 並將兩個屬性新增至根元件: LanguageLocalizableIt supports serializing to resources through IResourceService, and it adds two properties to the root component: Language and Localizable. 如果Localizable設定為true, 此提供者會變更產生元件屬性的方式, 並將其值路由傳送至資源檔。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.

建構函式

CodeDomLocalizationProvider(IServiceProvider, CodeDomLocalizationModel)

初始化 CodeDomLocalizationProvider 類別的新執行個體。Initializes a new instance of the CodeDomLocalizationProvider class.

CodeDomLocalizationProvider(IServiceProvider, CodeDomLocalizationModel, CultureInfo[])

初始化 CodeDomLocalizationProvider 類別的新執行個體。Initializes a new instance of the CodeDomLocalizationProvider class.

方法

Dispose()

釋放 CodeDomLocalizationProvider 所使用的所有資源。Releases all resources used by the CodeDomLocalizationProvider.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

明確介面實作

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

如需這個成員的說明,請參閱 GetSerializer(IDesignerSerializationManager, Object, Type, Type)For a description of this member, see GetSerializer(IDesignerSerializationManager, Object, Type, Type).

適用於

另請參閱