XmlSerializationReader.EnsureArrayIndex(Array, Int32, Type) 方法

定義

確定指定之陣列或複本的大小足以容納指定的索引。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

protected:
 Array ^ EnsureArrayIndex(Array ^ a, int index, Type ^ elementType);
protected Array EnsureArrayIndex (Array? a, int index, Type elementType);
protected Array EnsureArrayIndex (Array a, int index, Type elementType);
member this.EnsureArrayIndex : Array * int * Type -> Array
Protected Function EnsureArrayIndex (a As Array, index As Integer, elementType As Type) As Array

參數

a
Array

正在檢查的 Array

index
Int32

必要的索引。

elementType
Type

陣列項目的 Type

傳回

如果現有的陣列大小已足夠,即為現有 Array;否則為更大的新陣列,且其中含有原始陣列的項目。

備註

的受保護成員 XmlSerializationReader 僅供在 .NET Framework XML 序列化基礎結構內部使用的衍生類別使用。

適用於