Url MembersC# API

The Url type exposes the following members.
Constructors

  NameDescription
Public methodUrl(String)
Initialises a new instance of the Url class, from the specified urlText.
Public methodUrl(IntPtr, Boolean)
For internal use only. Of no interest to the user.
Public methodUrl(Protocol, IpEndPoint)
Initialises a new instance of the Url class, with the specified protocol and ipEndPoint (host/port).
Public methodUrl(Protocol, String)
Initialises a new instance of the Url class, with the specified protocol and host.
Public methodUrl(Protocol, IpEndPoint, String)
Initialises a new instance of the Url class, with the specified protocol, ipEndPoint (host/port) and path.
Public methodUrl(Protocol, String, String)
Initialises a new instance of the Url class, with the specified protocol, host and path.
Public methodUrl(Url, String, Boolean)
For internal use only. Of no interest to the user.
Public methodUrl(Protocol, IpEndPoint, String, QueryData)
Initialises a new instance of the Url class, with the specified protocol, ipEndPoint (host/port), path and QueryData object.
Public methodUrl(Protocol, IpEndPoint, String, String)
Initialises a new instance of the Url class, with the specified protocol, ipEndPoint (host/port), path and queryText string.
Public methodUrl(Protocol, IpEndPoint, String, QueryData, String)
Initialises a new instance of the Url class, with the specified protocol, ipEndPoint (host/port), path and QueryData object. The queryData object will be percent-encoded using the supplied list of unsafeCharacters.
Back to Top
Methods

  NameDescription
Public methodAppendPath
Initialises a new instance of the Url class using the attributes of this Url, but with the specified path appended to the existing path.
Public methodDispose
Releases all resources used by the Url
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic membergetCPtr
For internal use only. Of no interest to the user.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString 
Returns a string representation of this Url.
(Overrides Object ToString .)
Public methodToString(Boolean)
Returns a string representation of this Url, specifying whether to percent-encode the path.
Public methodToString(Boolean, Boolean)
Returns a string representation of this Url, specifying whether to percent-encode the path and include the port component of the URL if it is a standard port.
Public methodWithCredentials
Initialises a new instance of the Url class using the attributes of this Url, but with the specified user and password (replacing the existing credentials if present).
Public methodWithPath
Initialises a new instance of the Url class using the attributes of this Url, but with the specified path (replacing the existing path if present).
Public methodWithPort
Initialises a new instance of the Url class using the attributes of this Url, but with the specified port (replacing the existing port if present).
Public methodWithQuery(String)
Initialises a new instance of the Url class using the attributes of this Url, but with the specified queryText string (replacing the existing query data if present).
Public methodWithQuery(Form)
Initialises a new instance of the Url class using the attributes of this Url, but with query data from the specified Form object (replacing the existing query data if present).
Public methodWithQuery(QueryData)
Initialises a new instance of the Url class using the attributes of this Url, but with the specified QueryData object (replacing the existing query data if present).
Public methodWithQuery(Form, String)
Initialises a new instance of the Url class using the attributes of this Url, but with query data from the specified Form object percent-encoded using the supplied list of unsafeCharacters (replacing the existing query data if present).
Public methodWithQuery(QueryData, String)
Initialises a new instance of the Url class using the attributes of this Url, but with the specified QueryData object percent-encoded using the supplied list of unsafeCharacters (replacing the existing query data if present).
Public methodWithReference
Initialises a new instance of the Url class using the attributes of this Url, but with the specified reference (replacing the existing reference, also known as the fragment ID, if present).
Back to Top
Properties

  NameDescription
Public propertyDirectoryPath
Gets the directory components of the path in this Url, excluding the filename.
Public propertyEncodedPathAndQuery
Gets the section of the URL used in an HTTP request.
Public propertyFileName
Gets the name of the file at the end of the path in this Url.
Public propertyIpEndPoint
Gets the IpEndPoint pointed to by this Url.
Public propertyIsRelativePath
Gets a value that indicates whether the return value of Path doesn't begin with /.
Public propertyIsStandardPortForProtocol
Gets a value that indicates whether a standard port is being used.
Public propertyPassword
Gets the password specified in this Url.
Public propertyPath
Gets the path component of this Url, excluding the first / after the hostname.
Public propertyProtocol
Gets the Protocol used for this Url. This appears before the :// at the start of a URL, and is also known as the scheme.
Public propertyQuery
Gets the percent-encoded query data section of this Url.
Public propertyQueryData
Get a QueryData object representing the query data section of this Url.
Public propertyReference
Gets the reference (also known as the fragment ID) of this Url.
Public propertyUser
Gets the username specified in this Url.
Back to Top
See Also