OpenTypeMethods.IndexOf(Object, Object) Metodo

Definizione

Restituisce l'indice di una sottostringa nella stringa di destinazione.

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

Parametri

targetString
Object

Stringa di destinazione.

substring
Object

Sottostringa da trovare.

Valori restituiti

Indice della posizione di substring in targetString.

Commenti

Il IndexOf metodo restituisce un valore Null quando substring non è possibile trovare in targetString.

Si applica a