UriComponents Enum

Definition

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

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

public enum class UriComponents
[System.Flags]
public enum UriComponents
type UriComponents = 
Public Enum UriComponents
Inheritance
UriComponents
Attributes

Fields

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.

Remarks

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

Applies to