Export (0) Print
Expand All
Expand Minimize

UriComponents Enumeration

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)

[FlagsAttribute] 
public enum UriComponents
/** @attribute FlagsAttribute() */ 
public enum UriComponents
FlagsAttribute 
public enum UriComponents

 Member nameDescription
Supported by the .NET Compact FrameworkAbsoluteUriThe Scheme, UserInfo, Host, Port, LocalPath, Query, and Fragment data. 
Supported by the .NET Compact FrameworkFragmentThe Fragment data. 
Supported by the .NET Compact FrameworkHostThe Host data. 
Supported by the .NET Compact FrameworkHostAndPortThe 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 .NET Compact FrameworkHttpRequestUrlThe Scheme, Host, Port, LocalPath, and Query data. 
Supported by the .NET Compact FrameworkKeepDelimiterSpecifies that the delimiter should be included. 
Supported by the .NET Compact FrameworkPathThe LocalPath data. 
Supported by the .NET Compact FrameworkPathAndQueryThe LocalPath and Query data. Also see PathAndQuery.  
Supported by the .NET Compact FrameworkPortThe Port data. 
Supported by the .NET Compact FrameworkQueryThe Query data. 
Supported by the .NET Compact FrameworkSchemeThe Scheme data. 
Supported by the .NET Compact FrameworkSchemeAndServerThe Scheme, Host, and Port data. 
Supported by the .NET Compact FrameworkSerializationInfoStringThe complete Uri context that is needed for Uri Serializers. The context includes the IPv6 scope. 
Supported by the .NET Compact FrameworkStrongAuthorityThe 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 .NET Compact FrameworkStrongPortThe 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 .NET Compact FrameworkUserInfoThe 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

Community Additions

ADD
Show:
© 2014 Microsoft