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
'Déclaration
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
'Utilisation
Dim instance As IVsSingleFileGeneratorFactory
Dim wszProgId As String
Dim pbGeneratesDesignTimeSource As Integer
Dim pbGeneratesSharedDesignTimeSource As Integer
Dim pbUseTempPEFlag As Integer
Dim pguidGenerator As Guid
Dim returnValue As Integer
returnValue = instance.GetGeneratorInformation(wszProgId, _
pbGeneratesDesignTimeSource, pbGeneratesSharedDesignTimeSource, _
pbUseTempPEFlag, pguidGenerator)
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: 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.
- pguidGenerator
Type: System.Guid%
[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.
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
- 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.
See Also
Reference
IVsSingleFileGeneratorFactory Interface