IVsSingleFileGeneratorFactory.GetDefaultGenerator Method
Gets the default generator prog ID for a specified file.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'Déclaration
Function GetDefaultGenerator ( _
wszFilename As String, _
<OutAttribute> ByRef pbstrGenProgID As String _
) As Integer
'Utilisation
Dim instance As IVsSingleFileGeneratorFactory
Dim wszFilename As String
Dim pbstrGenProgID As String
Dim returnValue As Integer
returnValue = instance.GetDefaultGenerator(wszFilename, _
pbstrGenProgID)
int GetDefaultGenerator(
string wszFilename,
out string pbstrGenProgID
)
int GetDefaultGenerator(
[InAttribute] String^ wszFilename,
[OutAttribute] String^% pbstrGenProgID
)
abstract GetDefaultGenerator :
wszFilename:string *
pbstrGenProgID:string byref -> int
function GetDefaultGenerator(
wszFilename : String,
pbstrGenProgID : String
) : int
Parameters
- wszFilename
Type: System.String
[in] The file for which to get the generator prog ID.
- pbstrGenProgID
Type: System.String%
[out] The default generator prog ID.
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 GetDefaultGenerator(
[in] LPCOLESTR wszFilename,
[out, retval] BSTR* pbstrGenProgID
);
.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