C# Uri EscapeString

Description

Uri EscapeString converts a string to its escaped representation.

Syntax

Uri.EscapeString has the following syntax.


[ObsoleteAttribute("The method has been deprecated. Please use GetComponents() or static EscapeUriString() to escape a Uri component or a string. http://go.microsoft.com/fwlink/?linkid=14202")]
protected static string EscapeString(
  string str
)

Parameters

Uri.EscapeString has the following parameters.

  • str - The string to transform to its escaped representation.

Returns

Uri.EscapeString method returns The escaped representation of the string.





















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