Język

RequestUri Class

Definition

public ref class RequestUri
public class RequestUri
type RequestUri = class
Public Class RequestUri
Inheritance
RequestUri

Constructors

Name Description
RequestUri()

Properties

Name Description
HasPath

Gets whether or not this instance of RequestUri has a path.

HasQuery

Gets whether or not this instance of RequestUri has a query.

Host

Gets or sets the Domain Name System (DNS) host name or IP address of a server.

Path

Gets or sets the path to the resource referenced by the URI.

PathAndQuery

Gets the path and query string to the resource referenced by the URI.

Port

Gets or sets the port number of the URI.

Query

Gets or sets any query information included in the URI.

Scheme

Gets or sets the scheme name of the URI.

Methods

Name Description
AppendPath(Boolean, Boolean)
AppendPath(Byte[], String, Boolean)
AppendPath(DateTimeOffset, String, Boolean)
AppendPath(Double, Boolean)
AppendPath(Guid, Boolean)
AppendPath(IEnumerable<String>, Boolean)
AppendPath(Int32, Boolean)
AppendPath(Int64, Boolean)
AppendPath(ReadOnlySpan<Char>, Boolean)

Optionally escapes and appends the value to Path without adding path separator. If escape is true, path segments and any other characters will be escaped, e.g. ":" will be escaped as "%3a".

AppendPath(Single, Boolean)
AppendPath(String, Boolean)

Optionally escapes and appends the value to Path without adding path separator. If escape is true, path segments and any other characters will be escaped, e.g. ":" will be escaped as "%3a".

AppendPath(String)

Escapes and appends the value to Path without adding path separator. Path segments and any other characters will be escaped, e.g. ":" will be escaped as "%3a".

AppendPath(TimeSpan, String, Boolean)
AppendQuery(ReadOnlySpan<Char>, ReadOnlySpan<Char>, Boolean)

Appends a query parameter adding separator if required.

AppendQuery(String, Boolean, Boolean)
AppendQuery(String, Byte[], String, Boolean)
AppendQuery(String, DateTimeOffset, String, Boolean)
AppendQuery(String, Decimal, Boolean)
AppendQuery(String, Double, Boolean)
AppendQuery(String, Guid, Boolean)
AppendQuery(String, Int32, Boolean)
AppendQuery(String, Int64, Boolean)
AppendQuery(String, Single, Boolean)
AppendQuery(String, String, Boolean)

Appends a query parameter adding separator if required.

AppendQuery(String, String)

Appends a query parameter adding separator if required. Escapes the value.

AppendQuery(String, TimeSpan, Boolean)
AppendQuery(String, TimeSpan, String, Boolean)
AppendQueryDelimited<T>(String, IEnumerable<T>, String, Boolean)
AppendQueryDelimited<T>(String, IEnumerable<T>, String, String, Boolean)
AppendRawPathOrQueryOrHostOrScheme(String, Boolean)
Reset(Uri)

Replaces values inside this instance with values provided in the value parameter.

ToString()

Returns a string representation of this RequestUri.

ToUri()

Gets the Uri instance constructed by the specified RequestUri instance.

Applies to