StringPrototype.indexOf(Object, Object, Double) Método
Definição
Pesquisa a primeira ocorrência da cadeia de caracteres especificada no objeto especificado, começando na posição do caractere especificado.Searches for the first occurrence of the specified string in the specified object, starting from the specified character position.
Esta API dá suporte à infraestrutura do produto e não deve ser usada diretamente do seu código.
public:
static int indexOf(System::Object ^ thisob, System::Object ^ searchString, double position);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.String_indexOf)]
public static int indexOf (object thisob, object searchString, double position);
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.String_indexOf)>]
static member indexOf : obj * obj * double -> int
Public Shared Function indexOf (thisob As Object, searchString As Object, position As Double) As Integer
Parâmetros
- thisob
- Object
O objeto no qual este método está atuando.The object that this method is acting upon.
- searchString
- Object
A cadeia de caracteres a ser pesquisada.The string to search for.
- position
- Double
A posição em que iniciar a pesquisa.The position at which to start the search.
Retornos
A posição da primeira ocorrência de searchString, se for encontrada.The position of the first occurrence of searchString, if it is found.
- Atributos