ProvideDesignerMetadataAttribute 类   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
声明类型或对象的其他元数据,允许第三方修改类上可用的元数据集。
public ref class ProvideDesignerMetadataAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttributepublic ref class ProvideDesignerMetadataAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public sealed class ProvideDesignerMetadataAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type ProvideDesignerMetadataAttribute = class
    inherit RegistrationAttributePublic NotInheritable Class ProvideDesignerMetadataAttribute
Inherits RegistrationAttribute- 继承
- 属性
构造函数
| ProvideDesignerMetadataAttribute(Type, Type) | 初始化 的新实例 ProvideDesignerMetadataAttribute,将新的元数据 Type 与当前 Type相关联。 | 
属性
| IsGlobal | 获取或设置实例提供的元数据修改的范围 ProvideDesignerMetadataAttribute | 
| MetadataType | 获取元数据的类型。 | 
| RuntimeType | 获取运行时类型。 | 
| TypeId | 重写 TypeID 属性,以便让 RegistrationAttribute 派生类与 System.ComponentModel.TypeDescriptor.GetAttributes 一起使用 (...) 。仅当派生自此属性的属性需要对可应用于类的实例使用更好的控件时,它才必须重写此属性。(继承自 RegistrationAttribute) | 
方法
| GetPackageRegKeyPath(Guid) | 获取相对于 VSPackage 的应用程序) 注册表根目录 (注册表路径。(继承自 RegistrationAttribute) | 
| Register(RegistrationAttribute+RegistrationContext) | 注册设计器元数据。 | 
| Unregister(RegistrationAttribute+RegistrationContext) | 删除设计器元数据注册表项。 |