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: TypeThe 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.