ArrayPrototype::slice Method (Object^, VsaEngine^, Double, Object^)
.NET Framework (current version)
This API supports the product infrastructure and is not intended to be used directly from your code.
Creates a new array that contains the specified consecutive elements from the specified array.
Assembly: Microsoft.JScript (in Microsoft.JScript.dll)
public: [JSFunctionAttribute(JSFunctionAttributeEnum::None | JSFunctionAttributeEnum::HasThisObject | JSFunctionAttributeEnum::HasEngine, JSBuiltin::Array_slice)] static ArrayObject^ slice( Object^ thisob, VsaEngine^ engine, double start, Object^ end )
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 first consecutive element to get.
- end
-
Type:
System::Object^
The last consecutive element to get.
Return Value
Type: Microsoft.JScript::ArrayObject^A new array that contains the consecutive elements between thisob[start] and thisob[end].
.NET Framework
Available since 1.1
Available since 1.1
Show: