Compartir a través de


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

  • 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

See Also

Reference

CodeGeneratorRegistrationAttribute Class

Microsoft.VisualStudio.Shell Namespace