CodeGeneratorRegistrationAttribute(Type, String, String) Constructeur

Définition

Initialise une nouvelle instance de la classe CodeGeneratorRegistrationAttribute. Crée un nouvel attribut CodeGeneratorRegistrationAttribute pour enregistrer un générateur de code personnalisé pour le contexte fourni.

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)

Paramètres

generatorType
Type

Type du générateur de code. Ce paramètre est un type qui implémente IVsSingleFileGenerator.

generatorName
String

Nom du générateur.

contextGuid
String

GUID de contexte dans lequel ce générateur de code apparaîtrait.

Exceptions

La valeur Null est définie pour generatorType, generatorName ou contextGuid.

S’applique à