Url Constructors

Definition

Overloads

Url(String)

Initializes a new instance of Url for the specified path.

Url(Url, String)

Initializes a new instance of Url that is based on the specified base Url and relative path.

Url(String)

Initializes a new instance of Url for the specified path.

public:
 Url(System::String ^ path);
public:
 Url(Platform::String ^ path);
 Url(std::wstring const & path);
public Url (string path);
new Microsoft.VisualStudio.Shell.Url : string -> Microsoft.VisualStudio.Shell.Url
Public Sub New (path As String)

Parameters

path
String

The path for which to create the URL.

Remarks

This method first tries to create an absolute Uri. If it cannot, it tries to create a relative Uri.

Applies to

Url(Url, String)

Initializes a new instance of Url that is based on the specified base Url and relative path.

public:
 Url(Microsoft::VisualStudio::Shell::Url ^ baseUrl, System::String ^ relpath);
 Url(Microsoft::VisualStudio::Shell::Url const & baseUrl, std::wstring const & relpath);
public Url (Microsoft.VisualStudio.Shell.Url baseUrl, string relpath);
new Microsoft.VisualStudio.Shell.Url : Microsoft.VisualStudio.Shell.Url * string -> Microsoft.VisualStudio.Shell.Url
Public Sub New (baseUrl As Url, relpath As String)

Parameters

baseUrl
Url

The base Url.

relpath
String

The relative path.

Remarks

If relpath is null, this constructor returns the base Url. If baseUrl has a null Uri, then it makes a Url from relpath.

Applies to