ProvideCodeGeneratorExtensionAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重要
此 API 不符合 CLS。
提供针对特定文件扩展名的代码生成器注册的特性类
public ref class ProvideCodeGeneratorExtensionAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
public ref class ProvideCodeGeneratorExtensionAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=false)]
[System.CLSCompliant(false)]
public sealed class ProvideCodeGeneratorExtensionAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=false)>]
[<System.CLSCompliant(false)>]
type ProvideCodeGeneratorExtensionAttribute = class
inherit RegistrationAttribute
Public NotInheritable Class ProvideCodeGeneratorExtensionAttribute
Inherits RegistrationAttribute
- 继承
- 属性
注解
应应用于包类,而不是生成器。 除了 ProvideCodeGenerator 以外,此属性还可用于设置两项) 指定生成器的默认应用程序到扩展名提供的文件 b) 正确使用需要注册文件扩展名的 ASP.Net 项目系统
构造函数
| ProvideCodeGeneratorExtensionAttribute(String, String) |
构造函数 |
字段
| AspNetProjectSystemGuid |
与 ASP.Net 的包 Guid) 相对的实际项目 GUID ( |
| CSharpProjectSystemGuid |
与 CSharp 的包 Guid) 相对的实际项目 GUID ( |
| VisualBasicProjectSystemGuid |
与 Visual Basic 的包 Guid) 相对的实际项目 GUID ( |
属性
| Extension |
要将命名生成器绑定到的扩展 |
| Name |
要为其添加扩展的生成器的名称 |
| ProjectSystem |
此代码生成器注册到的项目系统 |
| ProjectSystemPackage |
实现此代码生成器注册到的项目系统的包 |
| TypeId |
获取此属性的当前实例。 (继承自 RegistrationAttribute) |
方法
| GetPackageRegKeyPath(Guid) |
获取与 VSPackage 的应用程序) 的注册表根相关的注册表路径 (。 (继承自 RegistrationAttribute) |
| Register(RegistrationAttribute+RegistrationContext) |
注册此生成器 |
| Unregister(RegistrationAttribute+RegistrationContext) |
删除指定的密钥 |