DesignTimeResourceProviderFactory 类

定义

在控件本地化过程中用于在设计时读写资源。Used by control localization to read and write resources at design time.

public ref class DesignTimeResourceProviderFactory abstract
public abstract class DesignTimeResourceProviderFactory
type DesignTimeResourceProviderFactory = class
Public MustInherit Class DesignTimeResourceProviderFactory
继承
DesignTimeResourceProviderFactory

实施者说明

DesignTimeResourceProviderFactory类继承时, 必须重写以下成员CreateDesignTimeLocalResourceProvider(IServiceProvider):、 CreateDesignTimeLocalResourceProvider(IServiceProvider)CreateDesignTimeLocalResourceWriter(IServiceProvider)方法。When you inherit from the DesignTimeResourceProviderFactory class, you must override the following members: the CreateDesignTimeLocalResourceProvider(IServiceProvider), CreateDesignTimeLocalResourceProvider(IServiceProvider), and CreateDesignTimeLocalResourceWriter(IServiceProvider) methods.

构造函数

DesignTimeResourceProviderFactory()

创建 DesignTimeResourceProviderFactory 类的新实例。Creates a new instance of the DesignTimeResourceProviderFactory class.

方法

CreateDesignTimeGlobalResourceProvider(IServiceProvider, String)

在派生类中重写时,使用提供的 IServiceProvider 接口和资源类名称创建全局资源提供程序。When overridden in a derived class, creates a global resource provider using the provided IServiceProvider interface and resource class name.

CreateDesignTimeLocalResourceProvider(IServiceProvider)

在派生类中重写时,使用提供的对设计宿主的引用创建本地资源提供程序。When overridden in a derived class, creates a local resource provider using the provided reference to the design host.

CreateDesignTimeLocalResourceWriter(IServiceProvider)

在派生类中重写时,创建本地资源编写器以使用提供的对设计宿主的引用。When overridden in a derived class, creates a local resource writer for using the provided reference to the design host.

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 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅