Class Url
Represents a URL and provides functionality for URL manipulation and cloning.
public class Url : Uri, ISerializable, ICloneable<Url>, ICloneable
- Inheritance
-
Url
- Implements
-
ICloneable<Url>
- Inherited Members
- Extension Methods
Constructors
Url(string)
Initializes a new instance of the Url class using the specified URL string.
public Url(string url)
Parameters
url
stringThe URL string.
Url(string, string)
Initializes a new instance of the Url class by combining a base URL and a relative URL.
public Url(string basePart, string relativePart)
Parameters
Url(Uri)
public Url(Uri url)
Parameters
Url(Uri, string)
public Url(Uri basePart, string relativePart)
Parameters
Properties
Encode
Gets or sets the type of encoding to apply on the URL.
public UrlEncodes Encode { get; set; }
Property Value
KeepDefaultPage
Gets or sets a value indicating whether the default page should be kept in the URL.
public bool KeepDefaultPage { get; set; }
Property Value
QueryString
Gets the query string associated with the URL.
public QueryString QueryString { get; }
Property Value
Methods
Clone()
Creates a new instance of the Url class that is a copy of the current instance.
public Url Clone()