Compartilhar via


IVsSingleFileGeneratorFactory.CreateGeneratorInstance Method

Definition

Creates a generator instance.

public:
 int CreateGeneratorInstance(System::String ^ wszProgId, [Runtime::InteropServices::Out] int % pbGeneratesDesignTimeSource, [Runtime::InteropServices::Out] int % pbGeneratesSharedDesignTimeSource, [Runtime::InteropServices::Out] int % pbUseTempPEFlag, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsSingleFileGenerator ^ % ppGenerate);
int CreateGeneratorInstance(std::wstring const & wszProgId, [Runtime::InteropServices::Out] int & pbGeneratesDesignTimeSource, [Runtime::InteropServices::Out] int & pbGeneratesSharedDesignTimeSource, [Runtime::InteropServices::Out] int & pbUseTempPEFlag, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsSingleFileGenerator const & & ppGenerate);
public int CreateGeneratorInstance (string wszProgId, out int pbGeneratesDesignTimeSource, out int pbGeneratesSharedDesignTimeSource, out int pbUseTempPEFlag, out Microsoft.VisualStudio.Shell.Interop.IVsSingleFileGenerator ppGenerate);
abstract member CreateGeneratorInstance : string * int * int * int * IVsSingleFileGenerator -> int
Public Function CreateGeneratorInstance (wszProgId As String, ByRef pbGeneratesDesignTimeSource As Integer, ByRef pbGeneratesSharedDesignTimeSource As Integer, ByRef pbUseTempPEFlag As Integer, ByRef ppGenerate As IVsSingleFileGenerator) As Integer

Parameters

wszProgId
String

[in] The prog ID of the generator factory.

pbGeneratesDesignTimeSource
Int32

[out] Boolean value; true if the factory generates source at design time.

pbGeneratesSharedDesignTimeSource
Int32

[out] Boolean value; true if the factory generates shared source at design time.

pbUseTempPEFlag
Int32

[out] Boolean value; true if the factory uses temporary PE flags.

ppGenerate
IVsSingleFileGenerator

[out] The GUID of the factory.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell80.idl:

HRESULT CreateGeneratorInstance(  
    [in] LPCOLESTR wszProgId,  
    [out] BOOL* pbGeneratesDesignTimeSource,  
    [out] BOOL* pbGeneratesSharedDesignTimeSource,  
    [out] BOOL* pbUseTempPEFlag,  
    [out] IVsSingleFileGenerator** ppGenerate  
);  

Applies to