IVsUIShell::GetURLViaDlg Method (String^, String^, String^, String^)
Visual Studio 2015
Brings up Open Project From Web dialog box to obtain a URL from a user.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int GetURLViaDlg(
String^ pszDlgTitle,
String^ pszStaticLabel,
String^ pszHelpTopic,
[OutAttribute] String^% pbstrURL
)
Parameters
- pszDlgTitle
-
Type:
System::String^
[in] Pointer to the dialog box title.
- pszStaticLabel
-
Type:
System::String^
[in] Pointer to the static label above the drop-down list box.
- pszHelpTopic
-
Type:
System::String^
[in] An F1 keyword that points to a specific Help topic for this dialog box.
- pbstrURL
-
Type:
System::String^
[out] URL entered by the user.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
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.
Show: