ArrayPrototype::unshift Method (Object^, array<Object^>^)

 

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

Adds new elements to the start of the specified array. Shifts the existing elements to the next positions.

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

public:
[JSFunctionAttribute(JSFunctionAttributeEnum::None | JSFunctionAttributeEnum::HasThisObject | JSFunctionAttributeEnum::HasVarArgs, 
	JSBuiltin::Array_unshift)]
static Object^ unshift(
	Object^ thisob,
	... array<Object^>^ args
)

Parameters

thisob
Type: System::Object^

The object that this method is acting upon.

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

The elements to add to thisob.

Return Value

Type: System::Object^

The new length of thisob.

.NET Framework
Available since 1.1
Return to top
Show: