Freigeben über


IVsUIShell2.GetDirectoryViaBrowseDlgEx Method

Definition

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

public:
 int GetDirectoryViaBrowseDlgEx(cli::array <Microsoft::VisualStudio::Shell::Interop::VSBROWSEINFOW> ^ pBrowse, System::String ^ pszHelpTopic, System::String ^ pszOpenButtonLabel, System::String ^ pszCeilingDir, cli::array <Microsoft::VisualStudio::Shell::Interop::VSNSEBROWSEINFOW> ^ pNSEBrowseInfo);
int GetDirectoryViaBrowseDlgEx(std::Array <Microsoft::VisualStudio::Shell::Interop::VSBROWSEINFOW> const & pBrowse, std::wstring const & pszHelpTopic, std::wstring const & pszOpenButtonLabel, std::wstring const & pszCeilingDir, std::Array <Microsoft::VisualStudio::Shell::Interop::VSNSEBROWSEINFOW> const & pNSEBrowseInfo);
public int GetDirectoryViaBrowseDlgEx (Microsoft.VisualStudio.Shell.Interop.VSBROWSEINFOW[] pBrowse, string pszHelpTopic, string pszOpenButtonLabel, string pszCeilingDir, Microsoft.VisualStudio.Shell.Interop.VSNSEBROWSEINFOW[] pNSEBrowseInfo);
abstract member GetDirectoryViaBrowseDlgEx : Microsoft.VisualStudio.Shell.Interop.VSBROWSEINFOW[] * string * string * string * Microsoft.VisualStudio.Shell.Interop.VSNSEBROWSEINFOW[] -> int
Public Function GetDirectoryViaBrowseDlgEx (pBrowse As VSBROWSEINFOW(), pszHelpTopic As String, pszOpenButtonLabel As String, pszCeilingDir As String, pNSEBrowseInfo As VSNSEBROWSEINFOW()) As Integer

Parameters

pBrowse
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
String

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

pszOpenButtonLabel
String

[in] Caption text for the Open button.

pszCeilingDir
String

[in] Limit browsing to below this location.

pNSEBrowseInfo
VSNSEBROWSEINFOW[]

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

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::GetDirectoryViaBrowseDlgEx(  
   [in,out] VSBROWSEINFOW     *pBrowse,  
   [in]     LPCOLESTR          pszHelpTopic,  
   [in]     LPCOLESTR          pszOpenButtonLabel,  
   [in]     LPCOLESTR          pszCeilingDir,  
   [in]     VSNSEBROWSEINFOW  *pNSEBrowseInfo  
);  

Applies to