C# Uri GetComponents

Description

Uri GetComponents gets the specified components of the current instance using the specified escaping for special characters.

Syntax

Uri.GetComponents has the following syntax.


public string GetComponents(
  UriComponents components,
  UriFormat format
)

Parameters

Uri.GetComponents has the following parameters.

  • components - A bitwise combination of the UriComponents values that specifies which parts of the current instance to return to the caller.
  • format - One of the UriFormat values that controls how special characters are escaped.

Returns

Uri.GetComponents method returns A String that contains the components.





















Home »
  C# Tutorial »
    System »




Array
BitConverter
Boolean
Byte
Char
Console
ConsoleKeyInfo
Convert
DateTime
DateTimeOffset
Decimal
Double
Enum
Environment
Exception
Guid
Int16
Int32
Int64
Math
OperatingSystem
Random
SByte
Single
String
StringComparer
TimeSpan
TimeZone
TimeZoneInfo
Tuple
Tuple
Tuple
Type
UInt16
UInt32
UInt64
Uri
Version