Export (0) Print
Expand All

Char.IsLowSurrogate Method (String, Int32)

Indicates whether the Char object at the specified position in a string is a low surrogate.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

static member IsLowSurrogate : 
        s:string * 
        index:int -> bool


Type: System.String

A string.

Type: System.Int32

The position of the character to evaluate in s.

Return Value

Type: System.Boolean
true if the numeric value of the specified character in the s parameter ranges from U+DC00 through U+DFFF; otherwise, false.


s is a null reference (Nothing in Visual Basic).


index is not a position within s.

The index parameter is zero-based.

In addition to representing single characters using a 16-bit code point, UTF-16 encoding allows abstract characters to be represented using two 16-bit code points, which is known as a surrogate pair. The second element in this pair is the low surrogate. Its code point can range from U+DC00 to U+DFFF. An individual surrogate has no interpretation of its own; it is meaningful only when used as part of a surrogate pair.

The following code example demonstrates the IsHighSurrogate, IsLowSurrogate, and IsSurrogatePair methods.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 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

.NET for Windows Store apps

Supported in: Windows 8

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft