Compartilhar via


IVsUIShell.GetOpenFileNameViaDlg(VSOPENFILENAMEW[]) Method

Definition

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

public:
 int GetOpenFileNameViaDlg(cli::array <Microsoft::VisualStudio::Shell::Interop::VSOPENFILENAMEW> ^ pOpenFileName);
int GetOpenFileNameViaDlg(std::Array <Microsoft::VisualStudio::Shell::Interop::VSOPENFILENAMEW> const & pOpenFileName);
public int GetOpenFileNameViaDlg (Microsoft.VisualStudio.Shell.Interop.VSOPENFILENAMEW[] pOpenFileName);
abstract member GetOpenFileNameViaDlg : Microsoft.VisualStudio.Shell.Interop.VSOPENFILENAMEW[] -> int
Public Function GetOpenFileNameViaDlg (pOpenFileName As VSOPENFILENAMEW()) As Integer

Parameters

pOpenFileName
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.

Returns

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.

Applies to