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

‘선언
Function GetDefaultGenerator ( _
    wszFilename As String, _
    <OutAttribute> ByRef pbstrGenProgID As String _
) As Integer
‘사용 방법
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

See Also

Reference

IVsSingleFileGeneratorFactory Interface

IVsSingleFileGeneratorFactory Members

Microsoft.VisualStudio.Shell.Interop Namespace