System.Uri
Summary
Provides an object representation of a uniform resource identifier (URI) and easy access to the parts of the URI.
Defined in Uri.js
Constructors
System.Uri(<String> uriString)
Initializes a new instance of the Uri class with the specified URI.
Methods
-
String GetAbsolutePath()
Gets the absolute path of the URI.
Return Values
A String containing the absolute path to the resource.
-
String GetAbsoluteUri()
Gets the absolute URI.
Return Values
A String containing the entire URI.
-
String GetAuthority()
Gets the Domain Name System (DNS) host name or IP address and the port number for a server.
Return Values
A String containing the authority component of the URI represented by this instance.
-
String GetFragment()
Gets the escaped fragment.
Return Values
A String containing any URI fragment information.
-
String GetHost()
Gets the host component of this instance.
Return Values
A String containing the host name. This is usually the DNS host name or IP address of the server.
-
String GetPathAndQuery()
Gets the AbsolutePath and Query properties separated by a question mark (?).
Return Values
A String that contains the AbsolutePath and Query properties separated by a question mark (?).
-
Int GetPort()
Gets the port number of this URI.
Return Values
An Int32 value containing the port number for this URI.
-
String GetQuery()
Gets any query information included in the specified URI.
Return Values
A String containing any query information included in the specified URI.
-
String GetScheme()
Gets the scheme name for this URI.
Return Values
A String containing the scheme for this URI, converted to lowercase.
-
Boolean IsDefaultPort()
Gets a value indicating whether the port value of the URI is the default for this scheme.
Return Values
True if the value in the GetPort0 method is the default port for this scheme; otherwise, false.
-
Boolean IsFile()
Gets a value indicating whether the specified Uri is a file URI.
Return Values
True if the Uri is a file URI; otherwise, false.
-
Boolean IsLoopback()
Gets a Boolean value indicating whether the specified Uri references the local host.
Return Values
True if this Uri references the local host; otherwise, false.