UriComponents Enumeration (System)

Switch View :
ScriptFree
.NET Framework Class Library
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)
Syntax

Visual Basic
<FlagsAttribute> _
Public Enumeration UriComponents
C#
[FlagsAttribute]
public enum UriComponents
Visual C++
[FlagsAttribute]
public enum class UriComponents
F#
[<FlagsAttribute>]
type UriComponents
Members

Member name Description
Supported by the XNA Framework Supported by Portable Class Library Scheme The Scheme data.
Supported by the XNA Framework Supported by Portable Class Library UserInfo The UserInfo data.
Supported by the XNA Framework Supported by Portable Class Library Host The Host data.
Supported by the XNA Framework Supported by Portable Class Library Port The Port data.
Supported by the XNA Framework Supported by Portable Class Library Path The LocalPath data.
Supported by the XNA Framework Supported by Portable Class Library Query The Query data.
Supported by the XNA Framework Supported by Portable Class Library Fragment The Fragment data.
Supported by the XNA Framework Supported by Portable Class Library StrongPort 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.
Supported by the XNA Framework Supported by Portable Class Library KeepDelimiter Specifies that the delimiter should be included.
Supported by the XNA Framework Supported by Portable Class Library SerializationInfoString The complete Uri context that is needed for Uri Serializers. The context includes the IPv6 scope.
Supported by the XNA Framework Supported by Portable Class Library AbsoluteUri The Scheme, UserInfo, Host, Port, LocalPath, Query, and Fragment data.
Supported by the XNA Framework Supported by Portable Class Library HostAndPort 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.
Supported by the XNA Framework Supported by Portable Class Library StrongAuthority 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.
Supported by the XNA Framework Supported by Portable Class Library SchemeAndServer The Scheme, Host, and Port data.
Supported by the XNA Framework Supported by Portable Class Library HttpRequestUrl The Scheme, Host, Port, LocalPath, and Query data.
Supported by the XNA Framework Supported by Portable Class Library PathAndQuery The LocalPath and Query data. Also see PathAndQuery.
Remarks

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

Version Information

.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
Platforms

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.
See Also

Reference