UriComponents UriComponents UriComponents UriComponents Enum

定义

指定 Uri 的各个部分。Specifies the parts of a Uri.

此枚举有一个 FlagsAttribute 属性,允许按位组合成员值。

public enum class UriComponents
[System.Flags]
public enum UriComponents
type UriComponents = 
Public Enum UriComponents
继承
UriComponentsUriComponentsUriComponentsUriComponents
属性

字段

AbsoluteUri AbsoluteUri AbsoluteUri AbsoluteUri 127

SchemeUserInfoHostPortLocalPathQueryFragment 数据。The Scheme, UserInfo, Host, Port, LocalPath, Query, and Fragment data.

Fragment Fragment Fragment Fragment 64

Fragment 数据。The Fragment data.

Host Host Host Host 4

Host 数据。The Host data.

HostAndPort HostAndPort HostAndPort HostAndPort 132

HostPort 数据。The Host and Port data. 如果在 Uri 中没有端口数据并且已为 Scheme 分配了一个默认端口,则返回该默认端口。If no port data is in the Uri and a default port has been assigned to the Scheme, the default port is returned. 如果没有默认端口,则返回 -1。If there is no default port, -1 is returned.

HttpRequestUrl HttpRequestUrl HttpRequestUrl HttpRequestUrl 61

SchemeHostPortLocalPathQuery 数据。The Scheme, Host, Port, LocalPath, and Query data.

KeepDelimiter KeepDelimiter KeepDelimiter KeepDelimiter 1073741824

指定应包含分隔符。Specifies that the delimiter should be included.

NormalizedHost NormalizedHost NormalizedHost NormalizedHost 256

Host 的规范化形式。The normalized form of the Host.

Path Path Path Path 16

LocalPath 数据。The LocalPath data.

PathAndQuery PathAndQuery PathAndQuery PathAndQuery 48

LocalPathQuery 数据。The LocalPath and Query data. 另外,请参见 PathAndQueryAlso see PathAndQuery.

Port Port Port Port 8

Port 数据。The Port data.

Query Query Query Query 32

Query 数据。The Query data.

Scheme Scheme Scheme Scheme 1

Scheme 数据。The Scheme data.

SchemeAndServer SchemeAndServer SchemeAndServer SchemeAndServer 13

SchemeHostPort 数据。The Scheme, Host, and Port data.

SerializationInfoString SerializationInfoString SerializationInfoString SerializationInfoString -2147483648

URI 序列化程序所需的完整 Uri 上下文。The complete Uri context that is needed for Uri Serializers. 此上下文包括 IPv6 范围。The context includes the IPv6 scope.

StrongAuthority StrongAuthority StrongAuthority StrongAuthority 134

UserInfoHostPort 数据。The UserInfo, Host, and Port data. 如果 Uri 中没有任何端口数据且已将默认端口分配给了 Scheme,则会返回默认端口。If no port data is in the Uri and a default port has been assigned to the Scheme, the default port is returned. 如果没有默认端口,则返回 -1。If there is no default port, -1 is returned.

StrongPort StrongPort StrongPort StrongPort 128

Port 数据。The Port data. 如果在 Uri 中没有端口数据并且已为 Scheme 分配了一个默认端口,则返回该默认端口。If no port data is in the Uri and a default port has been assigned to the Scheme, the default port is returned. 如果没有默认端口,则返回 -1。If there is no default port, -1 is returned.

UserInfo UserInfo UserInfo UserInfo 2

UserInfo 数据。The UserInfo data.

注解

此枚举用于标识的各个部分UriThis enumeration is used to identify the parts of a Uri. 此枚举与Uri.GetComponents方法一起使用。This enumeration is used with the Uri.GetComponents method.

适用于