CodeGeneratorRegistrationAttribute Constructor (Type^, String^, String^)
Visual Studio 2015
Initializes a new instance of the CodeGeneratorRegistrationAttribute class. Creates a new CodeGeneratorRegistrationAttribute attribute to register a custom code generator for the provided context.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
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.
| Exception | Condition |
|---|---|
| ArgumentNullException | The generatorType, generatorName, or contextGuid is set to null. |
Show: