StringPrototype.slice(Object, Double, Object) Methode

Definitie

Hiermee maakt u een nieuwe tekenreeks die de opgegeven opeenvolgende tekens uit de opgegeven tekenreeks bevat.

Deze API ondersteunt de productinfrastructuur en is niet bedoeld om rechtstreeks vanuit de code te gebruiken.

public:
 static System::String ^ slice(System::Object ^ thisob, double start, System::Object ^ end);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.String_slice)]
public static string slice(object thisob, double start, object end);
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.String_slice)>]
static member slice : obj * double * obj -> string
Public Shared Function slice (thisob As Object, start As Double, end As Object) As String

Parameters

thisob
Object

Het object waarop deze methode handelt.

start
Double

Het eerste opeenvolgende teken dat moet worden getyp.

end
Object

Het laatste opeenvolgende teken dat moet worden getyp.

Retouren

Een nieuwe tekenreeks die de opeenvolgende tekens tussen start en end.

Kenmerken

Van toepassing op

Zie ook