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.IndexOf (Char[])

Returns the index of the first occurrence of any character in the character array in the current instance.

[Visual Basic]
Overloads Public Function IndexOf( _
   ByVal value() As Char _
) As Integer
[C#]
public int IndexOf(
   char[] value
);
[C++]
public: int IndexOf(
   __wchar_t* value[]
);
[JScript]
public function IndexOf(
   value : Char[]
) : int;

Parameters

value
A character array containing all of the characters to search for.

Return Value

Value Condition
The index in the string If the character array is found.
-1 If the character array is not found.

Exceptions

Exception Type Condition
ArgumentNullException If the character array is null.

Remarks

The IndexOf method searches for a specified character array and returns the index. The search is case-sensitive and begins at index 0.

See Also

String Class | String Members | System Namespace | String.IndexOf Overload List | Int32