Edit

Share via


OpenTypeMethods.IndexOf(Object, Object) Method

Definition

Returns the index of a substring in the target string.

public:
 static System::Object ^ IndexOf(System::Object ^ targetString, System::Object ^ substring);
public static object IndexOf (object targetString, object substring);
static member IndexOf : obj * obj -> obj
Public Shared Function IndexOf (targetString As Object, substring As Object) As Object

Parameters

targetString
Object

The target string.

substring
Object

The substring to find.

Returns

The index of the location of substring in the targetString.

Remarks

The IndexOf method returns a null value when substring cannot be found in targetString.

Applies to