ProvideGeneratorAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
向 Package 派生类或实现的类添加了 Visual Basic 和 Visual c # 项目的给定代码生成器 IVsPackage 。
public ref class ProvideGeneratorAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
public ref class ProvideGeneratorAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public sealed class ProvideGeneratorAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type ProvideGeneratorAttribute = class
inherit RegistrationAttribute
Public NotInheritable Class ProvideGeneratorAttribute
Inherits RegistrationAttribute
- 继承
- 属性
构造函数
| ProvideGeneratorAttribute(Type, String, String, String, Boolean) |
初始化 ProvideGeneratorAttribute 给定包和生成器的的新实例。 |
属性
| Description |
获取生成器的说明。 |
| GenerateDesignTimeSource |
获取是否生成源代码以便在设计时使用。 |
| GeneratorType |
获取代码生成器的类型。 |
| Name |
获取生成器的名称。 |
| PackageGuid |
获取包含支持调用此生成器的项目的包的 GUID。 |
| TypeId |
获取此属性的当前实例。 (继承自 RegistrationAttribute) |
方法
| GetPackageRegKeyPath(Guid) |
获取与 VSPackage 的应用程序) 的注册表根相关的注册表路径 (。 (继承自 RegistrationAttribute) |
| Register(RegistrationAttribute+RegistrationContext) |
向给定的上下文注册此属性。 |
| Unregister(RegistrationAttribute+RegistrationContext) |
删除 regpkg.exe 的外部注册工具调用的有关 VSPackage 的注册信息。 有关详细信息,请参阅注册 Vspackage。 |