CodeDomLocalizationProvider CodeDomLocalizationProvider CodeDomLocalizationProvider CodeDomLocalizationProvider Class

定義

提供 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
繼承
CodeDomLocalizationProviderCodeDomLocalizationProviderCodeDomLocalizationProviderCodeDomLocalizationProvider
實作

備註

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(IServiceProvider, CodeDomLocalizationModel) CodeDomLocalizationProvider(IServiceProvider, CodeDomLocalizationModel) CodeDomLocalizationProvider(IServiceProvider, CodeDomLocalizationModel)

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

CodeDomLocalizationProvider(IServiceProvider, CodeDomLocalizationModel, CultureInfo[]) CodeDomLocalizationProvider(IServiceProvider, CodeDomLocalizationModel, CultureInfo[]) CodeDomLocalizationProvider(IServiceProvider, CodeDomLocalizationModel, CultureInfo[]) CodeDomLocalizationProvider(IServiceProvider, CodeDomLocalizationModel, CultureInfo[])

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

方法

Dispose() Dispose() Dispose() Dispose()

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

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

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

(Inherited from Object)
GetType() GetType() GetType() GetType()

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

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

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

(Inherited from Object)
ToString() ToString() ToString() ToString()

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

(Inherited from Object)

明確介面實作

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

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

適用於

另請參閱