Url MethodsC# API
The Url type exposes the following members.
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
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
See Also