Url Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
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
- 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
.