Compartilhar via


SingleFileGeneratorSupportRegistrationAttribute Constructor

Initializes a new instance of the SingleFileGeneratorSupportRegistrationAttribute class to register a custom code generator.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Public Sub New ( _
    prjFactoryType As Type _
)
public SingleFileGeneratorSupportRegistrationAttribute(
    Type prjFactoryType
)
public:
SingleFileGeneratorSupportRegistrationAttribute(
    Type^ prjFactoryType
)
new : 
        prjFactoryType:Type -> SingleFileGeneratorSupportRegistrationAttribute
public function SingleFileGeneratorSupportRegistrationAttribute(
    prjFactoryType : Type
)

Parameters

  • prjFactoryType
    Type: Type

    The supplied Type’s GUID (supplied by the [Guid] attribute on the class definition) that is used as the project type GUID for the path [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\{ver}\Generators\{ProjectTypeGuid}].

Exceptions

Exception Condition
ArgumentNullException

The prjFactoryType parameter is null.

.NET Framework Security

See Also

Reference

SingleFileGeneratorSupportRegistrationAttribute Class

Microsoft.VisualStudio.Shell Namespace