NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

String.Chars

Gets the character at a specified position.

[Visual Basic]
Public Default ReadOnly Property Chars( _
   ByVal index As Integer _
) As Char
[C#]
public char this[
   int index
] {get;}
[C++]
public: __property __wchar_t get_Chars(int index);
[JScript]
returnValue = StringObject.Chars(index);

Parameters

index
The position of the character to get.

Exceptions

Exception Type Condition
ArgumentException If the character is not at that position in the string.

Remarks

This indexer gets a character from a specified position in the string and returns it. If the charcter at the specified position doesn't match the index parameter than an exception is thrown.

See Also

String Class | String Members | System Namespace | Char | Int32