Dela via


IVsSingleFileGeneratorFactory.GetGeneratorInformation Method

Gets information about a generator factory.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'Declaration
Function GetGeneratorInformation ( _
    wszProgId As String, _
    <OutAttribute> ByRef pbGeneratesDesignTimeSource As Integer, _
    <OutAttribute> ByRef pbGeneratesSharedDesignTimeSource As Integer, _
    <OutAttribute> ByRef pbUseTempPEFlag As Integer, _
    <OutAttribute> ByRef pguidGenerator As Guid _
) As Integer
int GetGeneratorInformation(
    string wszProgId,
    out int pbGeneratesDesignTimeSource,
    out int pbGeneratesSharedDesignTimeSource,
    out int pbUseTempPEFlag,
    out Guid pguidGenerator
)
int GetGeneratorInformation(
    [InAttribute] String^ wszProgId, 
    [OutAttribute] int% pbGeneratesDesignTimeSource, 
    [OutAttribute] int% pbGeneratesSharedDesignTimeSource, 
    [OutAttribute] int% pbUseTempPEFlag, 
    [OutAttribute] Guid% pguidGenerator
)
abstract GetGeneratorInformation : 
        wszProgId:string * 
        pbGeneratesDesignTimeSource:int byref * 
        pbGeneratesSharedDesignTimeSource:int byref * 
        pbUseTempPEFlag:int byref * 
        pguidGenerator:Guid byref -> int
function GetGeneratorInformation(
    wszProgId : String, 
    pbGeneratesDesignTimeSource : int, 
    pbGeneratesSharedDesignTimeSource : int, 
    pbUseTempPEFlag : int, 
    pguidGenerator : Guid
) : int

Parameters

  • wszProgId
    Type: String

    [in] The prog ID of the generator factory.

  • pbGeneratesDesignTimeSource
    Type: Int32%

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

  • pbGeneratesSharedDesignTimeSource
    Type: Int32%

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

  • pbUseTempPEFlag
    Type: Int32%

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

  • pguidGenerator
    Type: Guid%

    [out] The GUID of the factory.

Return Value

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

Remarks

COM Signature

From vsshell80.idl:

HRESULT GetGeneratorInformation(
    [in] LPCWSTR wszProgID, 
    [out] BOOL* pbGeneratesDesignTimeSource,
    [out] BOOL* pbGeneratesSharedDesignTimeSource,
    [out] BOOL* pbUseTempPEFlag,
    [out] GUID* pguidGenerator
);

.NET Framework Security

See Also

Reference

IVsSingleFileGeneratorFactory Interface

Microsoft.VisualStudio.Shell.Interop Namespace