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
'Declaration
Function GetDefaultGenerator ( _
wszFilename As String, _
<OutAttribute> ByRef pbstrGenProgID As String _
) As Integer
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: String[in] The file for which to get the generator prog ID.
pbstrGenProgID
Type: String%[out] The default generator prog ID.
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 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.