AnyUri ClassAnyUri ClassAnyUri Class
Represents a Uniform Resource Locator. The corresponding XML Schema type is
xs:anyURI
.
Inheritance Hierarchy
- System.ObjectSystem.ObjectSystem::Object
- XmlPrime.AnyUriXmlPrime.AnyUriXmlPrime::AnyUri
Syntax
Public NotInheritable Class AnyUri _ Implements IEquatable(Of AnyUri)
public sealed class AnyUri : IEquatable<AnyUri>
public: ref class AnyUri sealed : IEquatable<AnyUri^>
The AnyUriAnyUriAnyUri
type exposes the following members.
Constructors
Constructor | Description | |
---|---|---|
![]() | AnyUri (string)AnyUri (String)AnyUri (String^) | Initializes a new instance of the AnyUriAnyUriAnyUri class with the specified URI. |
![]() | AnyUri (string, string)AnyUri (String, String)AnyUri (String^, String^) | Initializes a new instance of the AnyUriAnyUriAnyUri class from the specified base URI and relative URI string. |
![]() | AnyUri (Uri)AnyUri (Uri)AnyUri (Uri^) | Initializes a new instance of the AnyUriAnyUriAnyUri class from a UriUriUri. |
![]() | AnyUri (AnyUri, string)AnyUri (AnyUri, String)AnyUri (AnyUri^, String^) | Initializes a new instance of the AnyUriAnyUriAnyUri class from the specified base URI and relative URI string. |
![]() | AnyUri (AnyUri, AnyUri)AnyUri (AnyUri, AnyUri)AnyUri (AnyUri^, AnyUri^) | Initializes a new instance of the AnyUriAnyUriAnyUri class based on the combination of a specified AnyUriAnyUriAnyUri instance and a relative AnyUriAnyUriAnyUri instance. |
Properties
Property | Description | |
---|---|---|
![]() | AuthorityAuthorityAuthority | Gets the user info, Domain Name System (DNS) host name or IP address, and the port number for a server. |
![]() | FragmentFragmentFragment | Gets the fragment specified in this URI. |
![]() | HostHostHost | Gets the host component of this URI. |
![]() | HostNameTypeHostNameTypeHostNameType | Gets the type of the host name specified in the URI. |
![]() | PathPathPath | Gets the path specified in the URI. |
![]() | PathAndQueryPathAndQueryPathAndQuery | Gets the path and query information included in this URI. |
![]() | PortPortPort | Gets the port number from this URI. |
![]() | QueryQueryQuery | Gets the query information included in this URI. |
![]() | SchemeSchemeScheme | Gets the scheme specified in this URI. |
![]() | UriKindUriKindUriKind | Gets a value indicating whether this URI is relative or absolute. |
![]() | UserInfoUserInfoUserInfo | Gets the user name, password, or other user-specific information from this URI. |
![]() | UserInfoItemsUserInfoItemsUserInfoItems | Gets the user name, password, or other user-specific information from this URI. |
Methods
Method | Description | |
---|---|---|
![]() | Equals (object)Equals (Object)Equals (object^) | Determines whether this instance is equal to a specified object. (Overrides Object.EqualsObject.EqualsObject::Equals) |
![]() | Equals (AnyUri)Equals (AnyUri)Equals (AnyUri^) | Indicates whether this instance is equal to another AnyUriAnyUriAnyUri. |
![]() | Object.FinalizeObject.FinalizeObject::Finalize | Allows an objectObjectobject to attempt to free resources and perform other cleanup operations before the objectObjectobject is reclaimed by garbage collection. (Inherited from System.ObjectSystem.ObjectSystem::Object) |
![]() | GetHashCodeGetHashCodeGetHashCode | Returns the hash code for this instance. (Overrides Object.GetHashCodeObject.GetHashCodeObject::GetHashCode) |
![]() | Object.GetTypeObject.GetTypeObject::GetType | Gets the TypeTypeType of the current instance. (Inherited from System.ObjectSystem.ObjectSystem::Object) |
![]() | MakeRelativeUriMakeRelativeUriMakeRelativeUri | Determines the difference between two AnyUriAnyUriAnyUri instances. |
![]() | Object.MemberwiseCloneObject.MemberwiseCloneObject::MemberwiseClone | Creates a shallow copy of the current objectObjectobject. (Inherited from System.ObjectSystem.ObjectSystem::Object) |
![]() | NormalizeNormalizeNormalize | Returns a normalized string representation of the current instance. |
![]() | ToStringToStringToString | Returns the stringStringString that represents the current AnyUriAnyUriAnyUri. (Overrides Object.ToStringObject.ToStringObject::ToString) |
![]() ![]() | TryCreate (string, out AnyUri)TryCreate (String, ByRef AnyUri)TryCreate (String^, AnyUri^%) | Creates a new AnyUriAnyUriAnyUri from its lexical value. A return value indicates whether the conversion succeeded or failed. |
![]() ![]() | TryCreate (AnyUri, string, out AnyUri)TryCreate (AnyUri, String, ByRef AnyUri)TryCreate (AnyUri^, String^, AnyUri^%) | Creates a new AnyUriAnyUriAnyUri from its lexical value and resolves it against a base URI. A return value indicates whether the conversion succeeded or failed. |
Operators
Operator | Description | |
---|---|---|
![]() ![]() | EqualityEqualityEquality | Indicates whether two AnyUriAnyUriAnyUri instances are equal. |
![]() ![]() | ImplicitImplicitImplicit | Performs an implicit conversion from AnyUriAnyUriAnyUri to UriUriUri. |
![]() ![]() | InequalityInequalityInequality | Indicates whether two AnyUriAnyUriAnyUri instances are equal. |
Fields
Remarks
AnyUriAnyUriAnyUri represents a Uniform Resource Locator, as specified in RFC3986.
AnyUriAnyUriAnyUri can represent relative URIs as well as absolute URIs.
URIs in the file:
scheme also accept '\' characters as path separators. This is a deviation from
RFC3986, but is an often used convention.