IVsUIShell.GetURLViaDlg(String, String, String, String) Method

Definition

Brings up Open Project From Web dialog box to obtain a URL from a user.

C++/WinRT
int GetURLViaDlg(std::wstring const & pszDlgTitle, std::wstring const & pszStaticLabel, std::wstring const & pszHelpTopic, [Runtime::InteropServices::Out] std::wstring const & & pbstrURL);

Parameters

pszDlgTitle
String

[in] Pointer to the dialog box title.

pszStaticLabel
String

[in] Pointer to the static label above the drop-down list box.

pszHelpTopic
String

[in] An F1 keyword that points to a specific Help topic for this dialog box.

pbstrURL
String

[out] URL entered by the user.

Returns

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

Remarks

COM Signature

From vsshell.idl:

cpp#
HRESULT IVsUIShell::GetURLViaDlg(  
   [in] LPCOLESTR pszDlgTitle,  
   [in] LPCOLESTR pszStaticLabel,  
   [in] LPCOLESTR pszHelpTopic,  
   [out] BSTR *pbstrURL  
);  

This method brings up the Open Project From Web dialog box, which is accessed by choosing Open from the File menu and then choosing Project From Web. You can change the title of this dialog box to something other than "Open Project From Web" by passing the new title in the pszDlgTitle parameter.

Applies to

製品 バージョン
Visual Studio SDK 2015, 2017, 2019, 2022