Partager via


IVsUIShell2.GetOpenFileNameViaDlgEx(VSOPENFILENAMEW[], String) Method

Definition

Brings up the File Open dialog box to obtain a specified open file.

public:
 int GetOpenFileNameViaDlgEx(cli::array <Microsoft::VisualStudio::Shell::Interop::VSOPENFILENAMEW> ^ pOpenFileName, System::String ^ pszHelpTopic);
int GetOpenFileNameViaDlgEx(std::Array <Microsoft::VisualStudio::Shell::Interop::VSOPENFILENAMEW> const & pOpenFileName, std::wstring const & pszHelpTopic);
public int GetOpenFileNameViaDlgEx (Microsoft.VisualStudio.Shell.Interop.VSOPENFILENAMEW[] pOpenFileName, string pszHelpTopic);
abstract member GetOpenFileNameViaDlgEx : Microsoft.VisualStudio.Shell.Interop.VSOPENFILENAMEW[] * string -> int
Public Function GetOpenFileNameViaDlgEx (pOpenFileName As VSOPENFILENAMEW(), pszHelpTopic As String) As Integer

Parameters

pOpenFileName
VSOPENFILENAMEW[]

[in, out] A VSOPENFILENAMEW structure that contains information used to initialize the File Open dialog box. When this method returns, this structure contains information about the user's file selection.

pszHelpTopic
String

[in] A string containing the help topic.

Returns

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  
);  

Applies to