Export (0) Print
Expand All
Expand Minimize

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 LibrarySchemeThe Scheme data.
Supported by the XNA FrameworkSupported by Portable Class LibraryUserInfoThe UserInfo data.
Supported by the XNA FrameworkSupported by Portable Class LibraryHostThe Host data.
Supported by the XNA FrameworkSupported by Portable Class LibraryPortThe Port data.
Supported by the XNA FrameworkSupported by Portable Class LibraryPathThe LocalPath data.
Supported by the XNA FrameworkSupported by Portable Class LibraryQueryThe Query data.
Supported by the XNA FrameworkSupported by Portable Class LibraryFragmentThe Fragment data.
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 LibraryKeepDelimiterSpecifies that the delimiter should be included.
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 LibraryAbsoluteUriThe Scheme, UserInfo, Host, Port, LocalPath, Query, and Fragment 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 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 LibrarySchemeAndServerThe Scheme, Host, and Port data.
Supported by the XNA FrameworkSupported by Portable Class LibraryHttpRequestUrlThe Scheme, Host, Port, LocalPath, and Query data.
Supported by the XNA FrameworkSupported by Portable Class LibraryPathAndQueryThe LocalPath and Query data. Also see PathAndQuery.

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, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2014 Microsoft