The Uri type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| Uri(String) |
Initializes a new instance of the [!:System.Uri] class
with the specified URI.
| |
| Uri(String, UriKind) |
Constructs Uri from string and enumeration that tell what is the type of Uri.
|
Methods
| Name | Description | |
|---|---|---|
| ConstructAbsoluteUri |
Constructs an absolute Uri from a URI string.
| |
| Equals | (Overrides Object..::..Equals(Object).) | |
| GetHashCode | (Overrides Object..::..GetHashCode()()()().) | |
| IsAlpha |
Checks to see if the character value is an alpha character.
| |
| IsAlphaNumeric |
Checks to see if the character value is an alpha or numeric.
| |
| IsHex |
Checks to see if the character value is Hex.
| |
| IsIPv4 |
Returns if host name is IP adress 4 bytes. Like 192.1.1.1
| |
| IsWellFormedUriString |
Indicates whether the string is well-formed by attempting to
construct a URI with the string.
| |
| ParseUriString |
Internal method parses a URI string into Uri variables
| |
| ValidateRelativePath |
Parses relative Uri into variables.
| |
| ValidateUriPart |
Validates that part of Uri after sheme is valid for unknown Uri scheme
| |
| ValidateUrn |
Parses urn string into Uri variables.
Parsing is restricted to basic urn:NamespaceID, urn:uuid formats only.
|
Operators
| Name | Description | |
|---|---|---|
| Equality | ||
| Inequality |
Fields
| Name | Description | |
|---|---|---|
| HttpDefaultPort |
Default port for http protocol - 80
| |
| HttpsDefaultPort |
Default port for https protocol - 443
| |
| m_AbsolutePath |
Member varialbe that keeps absolute path.
| |
| m_Flags |
Member variable that keeps internal flags/
| |
| m_host |
Member varialbe that keeps host name ( http and https ).
| |
| m_hostNameType |
Type of the host.
| |
| m_isAbsoluteUri |
Member varialbe that keeps boolean if Uri is absolute.
| |
| m_isUnc |
Member varialbe that tells if path is UNC ( Universal Naming Convention )
In this class it is always false, but can be changed in derived classes.
| |
| m_OriginalUriString |
Member varialbe that keeps original string passed to Uri constructor.
| |
| m_port |
Member variable that keeps port used by this uri.
| |
| m_scheme |
Member varialbe that keeps scheme of Uri.
| |
| UnknownPort |
Constant to indicate that port for this protocol is unknown
|
Properties
| Name | Description | |
|---|---|---|
| AbsolutePath |
Gets a local operating-system representation of a file name.
| |
| AbsoluteUri |
Gets a string containing the absolute uri or entire uri of this instance.
| |
| Host |
Gets the host component of this instance.
| |
| HostNameType |
Gets the type of the host name specified in the URI.
| |
| IsAbsoluteUri |
Gets whether the [!:System.Uri] instance is absolute.
| |
| IsLoopback |
Gets whether the specified [!:System.Uri] refers to the
local host.
| |
| IsUnc |
Gets whether the specified [!:System.Uri] is a universal
naming convention (UNC) path.
| |
| OriginalString |
Gets the original URI string that was passed to the Uri constructor.
| |
| Port |
Gets the port number of this URI.
| |
| Scheme |
Gets the scheme name for this URI.
|