OpenTypeMethods.IndexOf(Object, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.