Location Class
Location objects provide a representation of the address of the active document of their Document's browsing context, and allow the current entry of the browsing context's session history to be changed, by adding or replacing entries in the history object.
Inheritance Hierarchy
SystemObject
  Aspose.Html.DomDOMObject
    Aspose.HtmlUrl
      Aspose.Html.WindowLocation

Namespace: Aspose.Html.Window
Assembly: Aspose.HTML (in Aspose.HTML.dll) Version: 21.11
Syntax
public sealed class Location : Url

The Location type exposes the following members.

Properties
  NameDescription
Public propertyHash
Gets or sets a string representation for the specified URL hash segment.
(Inherited from Url.)
Public propertyHost
Gets or sets a string representation for the specified URL host.
(Inherited from Url.)
Public propertyHostname
Gets or sets a string representation for the specified URL hostname.
(Inherited from Url.)
Public propertyHref
Gets or sets a serialized representation for the specified URL instance.
(Inherited from Url.)
Public propertyOrigin
Gets a string representation for the specified URL origin.
(Inherited from Url.)
Public propertyPassword
Gets or sets a string representation for the specified URL password.
(Inherited from Url.)
Public propertyPathname
Gets or sets a string representation for the specified URL path.
(Inherited from Url.)
Public propertyPort
Gets or sets a string representation for the specified URL port.
(Inherited from Url.)
Public propertyProtocol
Gets or sets a string representation for the specified URL schema.
(Inherited from Url.)
Public propertySearch
Gets or sets a string representation for the specified URL search segment.
(Inherited from Url.)
Public propertySearchParams
Gets an associated IUrlSearchParams object.
(Inherited from Url.)
Public propertyUsername
Gets or sets a string representation for the specified URL username.
(Inherited from Url.)
Methods
  NameDescription
Public methodAssign
Navigates to the given page.
Public methodEquals
Determines whether the specified Object, is equal to this instance.
(Inherited from Url.)
Public methodGetHashCode
Returns a hash code for this instance.
(Inherited from Url.)
Public methodGetPlatformType

This method is used to retrieve the ECMAScript object .

(Inherited from DOMObject.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodReload
Reloads the current page.
Public methodReplace
Removes the current page from the session history and navigates to the given page.
Public methodToJson
Returns a String that represents this instance.
(Inherited from Url.)
Public methodToString
Returns a String that represents this instance.
(Inherited from Url.)
See Also