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
'Declaración
Function GetOpenFileNameViaDlg ( _
<OutAttribute> pOpenFileName As VSOPENFILENAMEW() _
) As Integer
'Uso
Dim instance As IVsUIShell
Dim pOpenFileName As VSOPENFILENAMEW()
Dim returnValue As Integer
returnValue = instance.GetOpenFileNameViaDlg(pOpenFileName)
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: System.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
- 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.