Partager via


IVsUIShell2.GetOpenFileNameViaDlgEx Method

Brings up the File Open dialog box to obtain a specified open 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 GetOpenFileNameViaDlgEx ( _
    <OutAttribute> pOpenFileName As VSOPENFILENAMEW(), _
    pszHelpTopic As String _
) As Integer
'Utilisation
Dim instance As IVsUIShell2
Dim pOpenFileName As VSOPENFILENAMEW()
Dim pszHelpTopic As String
Dim returnValue As Integer

returnValue = instance.GetOpenFileNameViaDlgEx(pOpenFileName, _
    pszHelpTopic)
int GetOpenFileNameViaDlgEx(
    VSOPENFILENAMEW[] pOpenFileName,
    string pszHelpTopic
)
int GetOpenFileNameViaDlgEx(
    [InAttribute] [OutAttribute] array<VSOPENFILENAMEW>^ pOpenFileName, 
    [InAttribute] String^ pszHelpTopic
)
abstract GetOpenFileNameViaDlgEx : 
        pOpenFileName:VSOPENFILENAMEW[] byref * 
        pszHelpTopic:string -> int 
function GetOpenFileNameViaDlgEx(
    pOpenFileName : VSOPENFILENAMEW[], 
    pszHelpTopic : String
) : int

Parameters

  • pszHelpTopic
    Type: System.String
    [in] A string containing the help topic.

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 IVsUIShell2::GetOpenFileNameViaDlgEx(
   [in,out] VSOPENFILENAMEW *pOpenFileName,
   [in]     LPCOLESTR        pszHelpTopic
);

.NET Framework Security

See Also

Reference

IVsUIShell2 Interface

IVsUIShell2 Members

Microsoft.VisualStudio.Shell.Interop Namespace