DesignSurfaceExtensionAttribute 类   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
通知 Visual Studio 环境,VSPackage 提供了一个 Type 实现服务,用于在设计器加载时自定义或扩展 的任何实现 DesignSurface 提供的服务。
public ref class DesignSurfaceExtensionAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttributepublic ref class DesignSurfaceExtensionAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public sealed class DesignSurfaceExtensionAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type DesignSurfaceExtensionAttribute = class
    inherit RegistrationAttributePublic NotInheritable Class DesignSurfaceExtensionAttribute
Inherits RegistrationAttribute- 继承
- 属性
构造函数
| DesignSurfaceExtensionAttribute(Type) | 创建 类的新实例, DesignSurfaceExtensionAttribute 将给定对象指定为提供 VSPackage 的 DesignSurfaceExtension实现。 | 
属性
| ExtensionType | Type注册为提供 VSPackage 的 对象的 ,以及用于自定义设计图面的 DesignSurfaceExtension 实现。 | 
| LoadAtIdle | 控制何时安装由 注册DesignSurfaceExtensionAttribute的 的 实现DesignSurfaceExtensionAttribute提供的扩展,相对于 VSPackage 使用的设计器加载。 | 
| TypeId | 重写 TypeID 属性,以便让 RegistrationAttribute 派生类与 System.ComponentModel.TypeDescriptor.GetAttributes 一起使用 (...) 。仅当派生自此属性的属性需要对可应用于类的实例使用更好的控件时,它才必须重写此属性。(继承自 RegistrationAttribute) | 
方法
| GetPackageRegKeyPath(Guid) | 获取相对于 VSPackage 的应用程序) 注册表根目录 (注册表路径。(继承自 RegistrationAttribute) | 
| Register(RegistrationAttribute+RegistrationContext) | 注册设计图面扩展。 | 
| Unregister(RegistrationAttribute+RegistrationContext) | 删除设计图面扩展注册表项。 |