Namespace: Microsoft.VisualStudio.TextTemplating.VSHost
Assembly: Microsoft.VisualStudio.TextTemplating.VSHost (in Microsoft.VisualStudio.TextTemplating.VSHost.dll)
Syntax
'宣言
Public Sub New ( _
type As Type, _
name As String, _
description As String, _
generatesDesignTimeSource As Boolean _
)
'使用
Dim type As Type
Dim name As String
Dim description As String
Dim generatesDesignTimeSource As Boolean
Dim instance As New ProvideCodeGeneratorAttribute(type, name, _
description, generatesDesignTimeSource)
public ProvideCodeGeneratorAttribute(
Type type,
string name,
string description,
bool generatesDesignTimeSource
)
public:
ProvideCodeGeneratorAttribute(
Type^ type,
String^ name,
String^ description,
bool generatesDesignTimeSource
)
public function ProvideCodeGeneratorAttribute(
type : Type,
name : String,
description : String,
generatesDesignTimeSource : boolean
)
Parameters
- type
Type: System.Type
- name
Type: System.String
- description
Type: System.String
- generatesDesignTimeSource
Type: System.Boolean
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
ProvideCodeGeneratorAttribute Class