Freigeben über


CodeGeneratorRegistrationAttribute(Type, String, String) Constructor

Definition

Creates a new CodeGeneratorRegistrationAttribute attribute to register a custom code generator for the provided context.

public:
 CodeGeneratorRegistrationAttribute(Type ^ generatorType, System::String ^ generatorName, System::String ^ contextGuid);
public:
 CodeGeneratorRegistrationAttribute(Platform::Type ^ generatorType, Platform::String ^ generatorName, Platform::String ^ contextGuid);
public CodeGeneratorRegistrationAttribute (Type generatorType, string generatorName, string contextGuid);
new Microsoft.VisualStudio.Shell.CodeGeneratorRegistrationAttribute : Type * string * string -> Microsoft.VisualStudio.Shell.CodeGeneratorRegistrationAttribute
Public Sub New (generatorType As Type, generatorName As String, contextGuid As String)

Parameters

generatorType
Type

The type of Code generator. Type that implements IVsSingleFileGenerator

generatorName
String

The generator name

contextGuid
String

The context GUID this code generator would appear under.

Exceptions

The generatorType, generatorName, or contextGuid is set to null.

Applies to