UriComponents UriComponents UriComponents UriComponents Enum

Definition

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
UriComponentsUriComponentsUriComponentsUriComponents
Attributes

Fields

AbsoluteUri AbsoluteUri AbsoluteUri AbsoluteUri 127

The Scheme, UserInfo, Host, Port, LocalPath, Query, and Fragment data.

Fragment Fragment Fragment Fragment 64

The Fragment data.

Host Host Host Host 4

The Host data.

HostAndPort HostAndPort HostAndPort HostAndPort 132

The Host and Port data. If no port data is in the Uri and a default port has been assigned to the Scheme, the default port is returned. If there is no default port, -1 is returned.

HttpRequestUrl HttpRequestUrl HttpRequestUrl HttpRequestUrl 61

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

The normalized form of the Host.

Path Path Path Path 16

The LocalPath data.

PathAndQuery PathAndQuery PathAndQuery PathAndQuery 48

The LocalPath and Query data. Also see PathAndQuery.

Port Port Port Port 8

The Port data.

Query Query Query Query 32

The Query data.

Scheme Scheme Scheme Scheme 1

The Scheme data.

SchemeAndServer SchemeAndServer SchemeAndServer SchemeAndServer 13

The Scheme, Host, and Port data.

SerializationInfoString SerializationInfoString SerializationInfoString SerializationInfoString -2147483648

The complete Uri context that is needed for Uri Serializers. The context includes the IPv6 scope.

StrongAuthority StrongAuthority StrongAuthority StrongAuthority 134

The UserInfo, Host, and Port data. If no port data is in the Uri and a default port has been assigned to the Scheme, the default port is returned. If there is no default port, -1 is returned.

StrongPort StrongPort StrongPort StrongPort 128

The Port data. If no port data is in the Uri and a default port has been assigned to the Scheme, the default port is returned. If there is no default port, -1 is returned.

UserInfo UserInfo UserInfo UserInfo 2

The UserInfo data.

Remarks

This enumeration is used to identify the parts of a Uri. This enumeration is used with the Uri.GetComponents method.

Applies to