IVsSingleFileGeneratorFactory::CreateGeneratorInstance Method (String^, Int32, Int32, Int32, IVsSingleFileGenerator^)
Visual Studio 2015
Creates a generator instance.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
int CreateGeneratorInstance( String^ wszProgId, [OutAttribute] int% pbGeneratesDesignTimeSource, [OutAttribute] int% pbGeneratesSharedDesignTimeSource, [OutAttribute] int% pbUseTempPEFlag, [OutAttribute] IVsSingleFileGenerator^% ppGenerate )
Parameters
- wszProgId
-
Type:
System::String^
[in] The prog ID of the generator factory.
- pbGeneratesDesignTimeSource
-
Type:
System::Int32
[out] Boolean value; true if the factory generates source at design time.
- pbGeneratesSharedDesignTimeSource
-
Type:
System::Int32
[out] Boolean value; true if the factory generates shared source at design time.
- pbUseTempPEFlag
-
Type:
System::Int32
[out] Boolean value; true if the factory uses temporary PE flags.
- ppGenerate
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsSingleFileGenerator^
[out] The GUID of the factory.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell80.idl:
HRESULT CreateGeneratorInstance(
[in] LPCOLESTR wszProgId,
[out] BOOL* pbGeneratesDesignTimeSource,
[out] BOOL* pbGeneratesSharedDesignTimeSource,
[out] BOOL* pbUseTempPEFlag,
[out] IVsSingleFileGenerator** ppGenerate
);
Show: