Edit

Share via


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

Definition

Adds and removes elements from an array at the specified position in the array. You can add elements, remove elements, or both.

This API supports the product infrastructure and is not intended to be used directly from your code.

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

Parameters

thisob
Object

The object that this method is acting upon.

engine
VsaEngine

A reference to the scripting engine.

start
Double

The position in the array to add and remove elements.

deleteCnt
Double

The number of elements to remove, if any.

args
Object[]

The elements to add, if any.

Returns

A new array that contains the elements removed from thisob, if any have been removed.

Attributes

Applies to