Rediger

Del via


XmlSerializationReader.EnsureArrayIndex(Array, Int32, Type) Method

Definition

Ensures that a given array, or a copy, is large enough to contain a specified index.

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

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

Parameters

a
Array

The Array that is being checked.

index
Int32

The required index.

elementType
Type

The Type of the array's elements.

Returns

The existing Array, if it is already large enough; otherwise, a new, larger array that contains the original array's elements.

Remarks

The protected members of XmlSerializationReader are intended for use only by derived classes that are used internally within the .NET Framework XML serialization infrastructure.

Applies to