Export (0) Print
Expand All

Char.IsUpper Method (String, Int32)

.NET Framework 1.1

Indicates whether the character at the specified position in a specified string is categorized as an uppercase letter.

[Visual Basic]
Overloads Public Shared Function IsUpper( _
   ByVal s As String, _
   ByVal index As Integer _
) As Boolean
[C#]
public static bool IsUpper(
 string s,
 int index
);
[C++]
public: static bool IsUpper(
 String* s,
 int index
);
[JScript]
public static function IsUpper(
   s : String,
 index : int
) : Boolean;

Parameters

s
A string.
index
The character position in s.

Return Value

true if the character at position index in s is an uppercase letter; otherwise, false.

Exceptions

Exception Type Condition
ArgumentNullException s is a null reference (Nothing in Visual Basic).
ArgumentOutOfRangeException index is less than zero or greater than the last position in s.

Remarks

Character positions in a string are indexed starting from zero.

Valid uppercase letters are members of the following category in UnicodeCategory: UppercaseLetter.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Common Language Infrastructure (CLI) Standard

See Also

Char Structure | Char Members | System Namespace | Char.IsUpper Overload List | Boolean | String

Show:
© 2014 Microsoft