Expand Minimize

UriComponents Enumeration

July 28, 2014

Specifies the parts of a Uri.

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

Namespace:  System
Assembly:  System (in System.dll)

[FlagsAttribute]
public enum UriComponents

Member nameDescription
AbsoluteUriThe Scheme, UserInfo, Host, Port, LocalPath, Query, and Fragment data.
FragmentThe Fragment data.
HostThe Host data.
HostAndPortThe 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.
HttpRequestUrlThe Scheme, Host, Port, LocalPath, and Query data.
KeepDelimiterSpecifies that the delimiter should be included.
NormalizedHostThe normalized form of the Host.
PathThe LocalPath data.
PathAndQueryThe LocalPath and Query data.
PortThe Port data.
QueryThe Query data.
SchemeThe Scheme data.
SchemeAndServerThe Scheme, Host, and Port data.
SerializationInfoStringThe complete Uri context that is needed for Uri Serializers. The context includes the IPv6 scope.
StrongAuthorityThe 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.
StrongPortThe 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.
UserInfoThe UserInfo data.

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

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft