IVsUIShell2::GetDirectoryViaBrowseDlgEx Method (array<VSBROWSEINFOW>^, String^, String^, String^, array<VSNSEBROWSEINFOW>^)

 

Brings up the Browse dialog box to obtain a directory name (possibly in a namespace extension).

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

int GetDirectoryViaBrowseDlgEx(
	array<VSBROWSEINFOW>^ pBrowse,
	String^ pszHelpTopic,
	String^ pszOpenButtonLabel,
	String^ pszCeilingDir,
	array<VSNSEBROWSEINFOW>^ pNSEBrowseInfo
)

Parameters

pBrowse
Type: array<Microsoft.VisualStudio.Shell.Interop::VSBROWSEINFOW>^

[in, out] A VSBROWSEINFOW structure that contains information used to initialize the dialog box. When this method returns, this structure contains information about the directory location selected by the user. These values are defined in VSBROWSEINFOW structure.

pszHelpTopic
Type: System::String^

[in] A string containing the help topic. This overrides the dwHelpTopic parameter in VSBROWSEINFOW structure.

pszOpenButtonLabel
Type: System::String^

[in] Caption text for the Open button.

pszCeilingDir
Type: System::String^

[in] Limit browsing to below this location.

pNSEBrowseInfo
Type: array<Microsoft.VisualStudio.Shell.Interop::VSNSEBROWSEINFOW>^

[in] Optional. Namespace extension information .For a listing of the structure parameters, see the VSNSEBROWSEINFOW structure.

Return Value

Type: System::Int32

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

From vsshell80.idl:

HRESULT IVsUIShell2::GetDirectoryViaBrowseDlgEx(
   [in,out] VSBROWSEINFOW     *pBrowse,
   [in]     LPCOLESTR          pszHelpTopic,
   [in]     LPCOLESTR          pszOpenButtonLabel,
   [in]     LPCOLESTR          pszCeilingDir,
   [in]     VSNSEBROWSEINFOW  *pNSEBrowseInfo
);
Return to top
Show: