Note: This enumeration is new in the .NET Framework version 2.0.
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)
Visual Basic (Declaration)
<FlagsAttribute> _
Public Enumeration UriComponents
Dim instance As UriComponents
[FlagsAttribute]
public enum UriComponents
[FlagsAttribute]
public enum class UriComponents
/** @attribute FlagsAttribute() */
public enum UriComponents
FlagsAttribute
public enum UriComponents
| | Member name | Description |
|---|
.gif) | AbsoluteUri | The Scheme, UserInfo, Host, Port, LocalPath, Query, and Fragment data. |
.gif) | Fragment | The Fragment data. |
.gif) | Host | The Host data. |
.gif) | 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. |
.gif) | HttpRequestUrl | The Scheme, Host, Port, LocalPath, and Query data. |
.gif) | KeepDelimiter | Specifies that the delimiter should be included. |
.gif) | Path | The LocalPath data. |
.gif) | PathAndQuery | The LocalPath and Query data. Also see PathAndQuery. |
.gif) | Port | The Port data. |
.gif) | Query | The Query data. |
.gif) | Scheme | The Scheme data. |
.gif) | SchemeAndServer | The Scheme, Host, and Port data. |
.gif) | SerializationInfoString | The complete Uri context that is needed for Uri Serializers. The context includes the IPv6 scope. |
.gif) | 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. |
.gif) | 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. |
.gif) | UserInfo | The UserInfo data. |
This enumeration is used to identify the parts of a Uri. This enumeration is used with the >System.UriScheme.GetComponents(System.Uri,System.UriComponents,System.UriFormat method.
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
.NET Framework
Supported in: 2.0
.NET Compact Framework
Supported in: 2.0