共用方式為


SingleFileGeneratorSupportRegistrationAttribute Constructor

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

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

Syntax

'宣告
Public Sub New ( _
    prjFactoryType As Type _
)
public SingleFileGeneratorSupportRegistrationAttribute(
    Type prjFactoryType
)

Parameters

  • prjFactoryType
    Type: System.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