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
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.