ArrayShapeEncoder.Shape Método

Definição

Codifica a forma do array.

public:
 void Shape(int rank, System::Collections::Immutable::ImmutableArray<int> sizes, System::Collections::Immutable::ImmutableArray<int> lowerBounds);
public void Shape(int rank, System.Collections.Immutable.ImmutableArray<int> sizes, System.Collections.Immutable.ImmutableArray<int> lowerBounds);
member this.Shape : int * System.Collections.Immutable.ImmutableArray<int> * System.Collections.Immutable.ImmutableArray<int> -> unit
Public Sub Shape (rank As Integer, sizes As ImmutableArray(Of Integer), lowerBounds As ImmutableArray(Of Integer))

Parâmetros

rank
Int32

O número de dimensões no array (deve ser 1 ou mais).

sizes
ImmutableArray<Int32>

Tamanhos dimensionais. O array pode ser mais curto, rank mas não mais longo.

lowerBounds
ImmutableArray<Int32>

Limites inferiores de dimensão, ou default(ImmutableArray<T>) para definir todos rank os limites inferiores a 0. O array pode ser mais curto, rank mas não mais longo.

Exceções

rank está fora do intervalo [1, 0xffff], menor que sizes.Length, ou menor que lowerBounds.Length.

sizes é null.

Aplica-se a