CodeGeneratorRegistrationAttribute Constructor
Initializes a new instance of the CodeGeneratorRegistrationAttribute class. Creates a new CodeGeneratorRegistrationAttribute attribute to register a custom code generator for the provided context.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'Declaración
Public Sub New ( _
generatorType As Type, _
generatorName As String, _
contextGuid As String _
)
public CodeGeneratorRegistrationAttribute(
Type generatorType,
string generatorName,
string contextGuid
)
Parameters
- generatorType
Type: System.Type
Type of the code generator. This parameter is a type that implements IVsSingleFileGenerator.
- generatorName
Type: System.String
Generator name.
- contextGuid
Type: System.String
Context GUID under which this code generator would appear.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The generatorType, generatorName, or contextGuid is set to null. |
.NET Framework Security
- 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.