ProvideCodeGeneratorAttribute 类

定义

重要

此 API 不符合 CLS。

提供代码生成器注册的特性类

public ref class ProvideCodeGeneratorAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
public ref class ProvideCodeGeneratorAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=false)]
[System.CLSCompliant(false)]
public sealed class ProvideCodeGeneratorAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=false)>]
[<System.CLSCompliant(false)>]
type ProvideCodeGeneratorAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class ProvideCodeGeneratorAttribute
Inherits RegistrationAttribute
继承
ProvideCodeGeneratorAttribute
属性

注解

应应用于包类本身,而不是生成器。

构造函数

ProvideCodeGeneratorAttribute(Type, String, String, Boolean)

构造函数

字段

AspNetProjectGuid

ASP.Net 项目系统包的 Guid

CSharpProjectGuid

C # 项目系统包的 Guid

VisualBasicProjectGuid

Visual Basic 项目系统包的 Guid

属性

Description

此生成器的可读说明

GeneratesDesignTimeSource

是否将此代码生成器标记为提供设计时源代码

Name

此生成器的名称

ProjectSystem

此代码生成器注册到的项目系统

RegisterCodeBase

是否使用基本代码注册生成器

Type

实现代码生成器的类型

TypeId

获取此属性的当前实例。

(继承自 RegistrationAttribute)

方法

GetPackageRegKeyPath(Guid)

获取与 VSPackage 的应用程序) 的注册表根相关的注册表路径 (。

(继承自 RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

注册此生成器

Unregister(RegistrationAttribute+RegistrationContext)

删除指定的密钥

适用于