Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
UriComponents Enumeration
Collapse the table of content
Expand the table of content

UriComponents Enumeration

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
Supported by the XNA FrameworkSupported by Portable Class LibraryAbsoluteUriThe Scheme, UserInfo, Host, Port, LocalPath, Query, and Fragment data.
Supported by the XNA FrameworkSupported by Portable Class LibraryFragmentThe Fragment data.
Supported by the XNA FrameworkSupported by Portable Class LibraryHostThe Host data.
Supported by the XNA FrameworkSupported by Portable Class LibraryHostAndPortThe 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.
Supported by the XNA FrameworkSupported by Portable Class LibraryHttpRequestUrlThe Scheme, Host, Port, LocalPath, and Query data.
Supported by the XNA FrameworkSupported by Portable Class LibraryKeepDelimiterSpecifies that the delimiter should be included.
NormalizedHostThe normalized form of the Host.
Supported by the XNA FrameworkSupported by Portable Class LibraryPathThe LocalPath data.
Supported by the XNA FrameworkSupported by Portable Class LibraryPathAndQueryThe LocalPath and Query data. Also see PathAndQuery.
Supported by the XNA FrameworkSupported by Portable Class LibraryPortThe Port data.
Supported by the XNA FrameworkSupported by Portable Class LibraryQueryThe Query data.
Supported by the XNA FrameworkSupported by Portable Class LibrarySchemeThe Scheme data.
Supported by the XNA FrameworkSupported by Portable Class LibrarySchemeAndServerThe Scheme, Host, and Port data.
Supported by the XNA FrameworkSupported by Portable Class LibrarySerializationInfoStringThe complete Uri context that is needed for Uri Serializers. The context includes the IPv6 scope.
Supported by the XNA FrameworkSupported by Portable Class LibraryStrongAuthorityThe 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.
Supported by the XNA FrameworkSupported by Portable Class LibraryStrongPortThe 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.
Supported by the XNA FrameworkSupported by Portable Class LibraryUserInfoThe UserInfo data.

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Portable Class Library

Supported in: Portable Class Library
Show:
© 2015 Microsoft