UriComponents 枚举

定义

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

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

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

字段

AbsoluteUri 127

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

Fragment 64

Fragment 数据。The Fragment data.

Host 4

Host 数据。The Host data.

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 61

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

KeepDelimiter 1073741824

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

NormalizedHost 256

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

Path 16

LocalPath 数据。The LocalPath data.

PathAndQuery 48

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

Port 8

Port 数据。The Port data.

Query 32

Query 数据。The Query data.

Scheme 1

Scheme 数据。The Scheme data.

SchemeAndServer 13

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

SerializationInfoString -2147483648

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

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 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 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.

适用于