IVsSingleFileGeneratorFactory::CreateGeneratorInstance Method (String^, Int32, Int32, Int32, IVsSingleFileGenerator^)

 

Creates a generator instance.

Namespace:   Microsoft.VisualStudio.Shell.Interop
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::Int32

If 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
);
Return to top
Show: