AnyUri ClassAnyUri ClassAnyUri Class

Represents a Uniform Resource Locator. The corresponding XML Schema type is xs:anyURI.

Inheritance Hierarchy

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

 ConstructorDescription
Public methodAnyUri (string)AnyUri (String)AnyUri (String^) Initializes a new instance of the AnyUriAnyUriAnyUri class with the specified URI.
Public methodAnyUri (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.
Public methodAnyUri (Uri)AnyUri (Uri)AnyUri (Uri^) Initializes a new instance of the AnyUriAnyUriAnyUri class from a UriUriUri.
Public methodAnyUri (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.
Public methodAnyUri (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.

Top

Properties

 PropertyDescription
Public propertyAuthorityAuthorityAuthority Gets the user info, Domain Name System (DNS) host name or IP address, and the port number for a server.
Public propertyFragmentFragmentFragment Gets the fragment specified in this URI.
Public propertyHostHostHost Gets the host component of this URI.
Public propertyHostNameTypeHostNameTypeHostNameType Gets the type of the host name specified in the URI.
Public propertyPathPathPath Gets the path specified in the URI.
Public propertyPathAndQueryPathAndQueryPathAndQuery Gets the path and query information included in this URI.
Public propertyPortPortPort Gets the port number from this URI.
Public propertyQueryQueryQuery Gets the query information included in this URI.
Public propertySchemeSchemeScheme Gets the scheme specified in this URI.
Public propertyUriKindUriKindUriKind Gets a value indicating whether this URI is relative or absolute.
Public propertyUserInfoUserInfoUserInfo Gets the user name, password, or other user-specific information from this URI.
Public propertyUserInfoItemsUserInfoItemsUserInfoItems Gets the user name, password, or other user-specific information from this URI.

Top

Methods

 MethodDescription
Public methodEquals (object)Equals (Object)Equals (object^) Determines whether this instance is equal to a specified object. (Overrides Object.EqualsObject.EqualsObject::Equals)
Public methodEquals (AnyUri)Equals (AnyUri)Equals (AnyUri^) Indicates whether this instance is equal to another AnyUriAnyUriAnyUri.
Protected methodObject.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)
Public methodGetComponentsGetComponentsGetComponents Gets the specified components of the current instance, using the specified escaping.
Public methodGetHashCodeGetHashCodeGetHashCode Returns the hash code for this instance. (Overrides Object.GetHashCodeObject.GetHashCodeObject::GetHashCode)
Public methodObject.GetTypeObject.GetTypeObject::GetType Gets the TypeTypeType of the current instance. (Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodMakeRelativeUriMakeRelativeUriMakeRelativeUri Determines the difference between two AnyUriAnyUriAnyUri instances.
Protected methodObject.MemberwiseCloneObject.MemberwiseCloneObject::MemberwiseClone Creates a shallow copy of the current objectObjectobject. (Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodNormalizeNormalizeNormalize Returns a normalized string representation of the current instance.
Public methodToStringToStringToString Returns the stringStringString that represents the current AnyUriAnyUriAnyUri. (Overrides Object.ToStringObject.ToStringObject::ToString)
Public methodstaticTryCreate (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.
Public methodstaticTryCreate (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.

Top

Operators

 OperatorDescription
Public operatorstaticEqualityEqualityEquality Indicates whether two AnyUriAnyUriAnyUri instances are equal.
Public operatorstaticImplicitImplicitImplicit Performs an implicit conversion from AnyUriAnyUriAnyUri to UriUriUri.
Public operatorstaticInequalityInequalityInequality Indicates whether two AnyUriAnyUriAnyUri instances are equal.

Top

Fields

 FieldDescription
Public fieldstaticEmptyEmptyEmpty Represents the empty AnyUriAnyUriAnyUri value. This field is read-only.

Top

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 with no host also accept '\' characters as path separators. This is a deviation from RFC3986, but is an often used convention.