初始化 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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。