Freigeben über


IVsUIShell.GetOpenFileNameViaDlg Method

Brings up the Open dialog box to obtain an open file name.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
Function GetOpenFileNameViaDlg ( _
    <OutAttribute> pOpenFileName As VSOPENFILENAMEW() _
) As Integer
int GetOpenFileNameViaDlg(
    VSOPENFILENAMEW[] pOpenFileName
)
int GetOpenFileNameViaDlg(
    [InAttribute] [OutAttribute] array<VSOPENFILENAMEW>^ pOpenFileName
)
abstract GetOpenFileNameViaDlg : 
        pOpenFileName:VSOPENFILENAMEW[] byref -> int
function GetOpenFileNameViaDlg(
    pOpenFileName : VSOPENFILENAMEW[]
) : int

Parameters

  • pOpenFileName
    Type: array<Microsoft.VisualStudio.Shell.Interop.VSOPENFILENAMEW[]

    [in, out] Pointer to an open file name structure that contains information used to initialize the dialog box. When this method returns, this structure contains information about the user's file selection.

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsUIShell::GetOpenFileNameViaDlg(
   [in,out] VSOPENFILENAMEW *pOpenFileName
);

Use a structure similar to VSOPENFILENAMEW structure to facilitate conversion from the GetOpenFileNameW system API.

.NET Framework Security

See Also

Reference

IVsUIShell Interface

Microsoft.VisualStudio.Shell.Interop Namespace