ArrayShapeEncoder.Shape Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Encodes array shape.
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))
Parameters
- rank
- Int32
The number of dimensions in the array (shall be 1 or more).
- sizes
- ImmutableArray<Int32>
Dimension sizes. The array may be shorter than rank
but not longer.
- lowerBounds
- ImmutableArray<Int32>
Dimension lower bounds, or default(ImmutableArray<T>) to set all rank
lower bounds to 0.
The array may be shorter than rank
but not longer.
Exceptions
rank
is outside of range [1, 0xffff], smaller than sizes.Length
, or smaller than lowerBounds.Length
.
sizes
is null
.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應