ArrayPrototype.splice(Object, VsaEngine, Double, Double, Object[]) Methode

Definition

Fügt Elemente an der angegebenen Position im Array hinzu und entfernt sie. Sie können Elemente hinzufügen, Elemente entfernen oder beides entfernen.

Diese API unterstützt die Produktinfrastruktur und ist nicht für die direkte Verwendung aus Ihrem Code gedacht.

public:
 static Microsoft::JScript::ArrayObject ^ splice(System::Object ^ thisob, Microsoft::JScript::Vsa::VsaEngine ^ engine, double start, double deleteCnt, ... cli::array <System::Object ^> ^ args);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasEngine | Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject | Microsoft.JScript.JSFunctionAttributeEnum.HasVarArgs, Microsoft.JScript.JSBuiltin.Array_splice)]
public static Microsoft.JScript.ArrayObject splice(object thisob, Microsoft.JScript.Vsa.VsaEngine engine, double start, double deleteCnt, params object[] args);
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasEngine | Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject | Microsoft.JScript.JSFunctionAttributeEnum.HasVarArgs, Microsoft.JScript.JSBuiltin.Array_splice)>]
static member splice : obj * Microsoft.JScript.Vsa.VsaEngine * double * double * obj[] -> Microsoft.JScript.ArrayObject
Public Shared Function splice (thisob As Object, engine As VsaEngine, start As Double, deleteCnt As Double, ParamArray args As Object()) As ArrayObject

Parameter

thisob
Object

Das Objekt, auf das diese Methode ausgeführt wird.

engine
VsaEngine

Ein Verweis auf das Skriptmodul.

start
Double

Die Position im Array zum Hinzufügen und Entfernen von Elementen.

deleteCnt
Double

Die Anzahl der zu entfernenden Elemente, falls vorhanden.

args
Object[]

Die hinzuzufügenden Elemente, falls vorhanden.

Gibt zurück

Ein neues Array, das die Elemente enthält, aus thisobdenen entfernt wurde, falls vorhanden.

Attribute

Gilt für: