ArrayObject.SpliceSlowly(UInt32, UInt32, Object[], ArrayObject, UInt32, UInt32) 方法

定义

在数组中的指定位置添加和移除数组中的元素。Adds elements to and removes elements from an array, at the specified position in the array. 您可以添加和/或移除元素。You can add elements, remove elements, or both.

此 API 支持产品基础结构,不能在代码中直接使用。

protected:
 void SpliceSlowly(System::UInt32 start, System::UInt32 deleteCount, cli::array <System::Object ^> ^ args, Microsoft::JScript::ArrayObject ^ outArray, System::UInt32 oldLength, System::UInt32 newLength);
protected void SpliceSlowly (uint start, uint deleteCount, object[] args, Microsoft.JScript.ArrayObject outArray, uint oldLength, uint newLength);
member this.SpliceSlowly : uint32 * uint32 * obj[] * Microsoft.JScript.ArrayObject * uint32 * uint32 -> unit
Protected Sub SpliceSlowly (start As UInteger, deleteCount As UInteger, args As Object(), outArray As ArrayObject, oldLength As UInteger, newLength As UInteger)

参数

start
UInt32

要在其中添加和移除元素的此数组中的位置。The position in this array at which to add and remove elements.

deleteCount
UInt32

要移除的元素(如果有)的数目。The number of elements to remove, if any.

args
Object[]

要添加的元素(如果有)。The elements to add, if any.

outArray
ArrayObject

一个数组,其中包含从此数组中移除的元素(如果已移除了任何元素)。An array that contains the elements removed from this array, if any have been removed.

oldLength
UInt32

此数组以前的长度。The previous length of this array.

newLength
UInt32

此数组的新长度。The new length of this array.

适用于

另请参阅