ArrayPrototype::splice Method (Object^, VsaEngine^, Double, Double, array<Object^>^)

 

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

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

Namespace:   Microsoft.JScript
Assembly:  Microsoft.JScript (in Microsoft.JScript.dll)

public:
[JSFunctionAttribute(JSFunctionAttributeEnum::None | JSFunctionAttributeEnum::HasThisObject | JSFunctionAttributeEnum::HasVarArgs | JSFunctionAttributeEnum::HasEngine, 
	JSBuiltin::Array_splice)]
static ArrayObject^ splice(
	Object^ thisob,
	VsaEngine^ engine,
	double start,
	double deleteCnt,
	... array<Object^>^ args
)

Parameters

thisob
Type: System::Object^

The object that this method is acting upon.

engine
Type: Microsoft.JScript.Vsa::VsaEngine^

A reference to the scripting engine.

start
Type: System::Double

The position in the array to add and remove elements.

deleteCnt
Type: System::Double

The number of elements to remove, if any.

args
Type: array<System::Object^>^

The elements to add, if any.

Return Value

Type: Microsoft.JScript::ArrayObject^

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

.NET Framework
Available since 1.1
Return to top
Show: