ProvideGeneratorAttribute 构造函数

初始化 ProvideGeneratorAttribute 新实例特定包和生成器的。

命名空间:  Microsoft.VisualStudio.Shell.Design.Serialization
程序集:  Microsoft.VisualStudio.Shell.Design(在 Microsoft.VisualStudio.Shell.Design.dll 中)

语法

声明
Public Sub New ( _
    generatorType As Type, _
    name As String, _
    description As String, _
    packageGuid As String, _
    generateDesignTimeSource As Boolean _
)
public ProvideGeneratorAttribute(
    Type generatorType,
    string name,
    string description,
    string packageGuid,
    bool generateDesignTimeSource
)

参数

  • generatorType
    类型:System.Type
    关联的代码生成器的类型。
  • name
    类型:System.String
    关联的代码生成器的名称。
  • description
    类型:System.String
    关联的代码生成器的说明。
  • packageGuid
    类型:System.String
    包含支持 invoke generatorType代码生成器项的包的 GUID。
  • generateDesignTimeSource
    类型:System.Boolean
    true ,如果关联的代码生成器生成源代码用于在设计时,否则 false。

.NET Framework 安全性

请参见

参考

ProvideGeneratorAttribute 类

Microsoft.VisualStudio.Shell.Design.Serialization 命名空间