IRegisterMetadata 接口

定义

指定可将附加特性添加到元数据存储区中的类。Specifies a class that will add extra attributes to the metadata store.

public interface class IRegisterMetadata
public interface IRegisterMetadata
type IRegisterMetadata = interface
Public Interface IRegisterMetadata
派生

注解

IRegisterMetadata 类型提供了一种方法,可以松耦合的方式封装设计时特性与运行时类型之间的关联。IRegisterMetadata types provide a way to encapsulate the association of design-time attributes to run-time types in a loosely coupled fashion. 承载 Windows 工作流设计器的应用程序可以使用 IRegisterMetadata 接口来注册活动的属性。An application hosting the Windows Workflow Designer can use the IRegisterMetadata interface to register the attributes for the activity. 例如,当加载包含这些类型的程序集时,Visual Studio 2010 会搜索实现的类型, IRegisterMetadata 此外还会在 *. 设计程序集中查找类型。For instance, Visual Studio 2010 searches for types that implement IRegisterMetadata when assemblies that contain these types are loaded in addition to also looking for types in the *.design assemblies.

方法

Register()

在设计器初始化时,将附加元数据添加到元数据存储区中。Adds additional metadata to the metadata store upon initialization of the designer.

适用于