SingleFileGeneratorSupportRegistrationAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在 $RegRoot $ \Generators. 下创建 ProjectTypeGuid 项 此注册属性由支持单个文件生成器的项目系统使用。
public ref class SingleFileGeneratorSupportRegistrationAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
public ref class SingleFileGeneratorSupportRegistrationAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)]
public sealed class SingleFileGeneratorSupportRegistrationAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)>]
type SingleFileGeneratorSupportRegistrationAttribute = class
inherit RegistrationAttribute
Public NotInheritable Class SingleFileGeneratorSupportRegistrationAttribute
Inherits RegistrationAttribute
- 继承
- 属性
注解
项目负责确保已创建 ProjectTypeGuid 键。 然后,特定文件类型的客户端实现实际的单个文件生成器,负责将其单个文件生成器注册到项目的 "生成器" 键的子项下。 实现特定单一文件生成器的客户端使用 CodeGeneratorRegistrationAttribute 来实现此目的。
构造函数
| SingleFileGeneratorSupportRegistrationAttribute(Type) |
初始化类的新实例 SingleFileGeneratorSupportRegistrationAttribute ,以注册自定义代码生成器。 |
属性
| ProjectFactoryGuid |
获取表示生成器类型的 GUID。 |
| TypeId |
获取此属性的当前实例。 (继承自 RegistrationAttribute) |
方法
| GetPackageRegKeyPath(Guid) |
获取与 VSPackage 的应用程序) 的注册表根相关的注册表路径 (。 (继承自 RegistrationAttribute) |
| Register(RegistrationAttribute+RegistrationContext) |
向给定的上下文注册此属性。 |
| Unregister(RegistrationAttribute+RegistrationContext) |
取消注册此属性。 |