_Type.GetArrayRank _Type.GetArrayRank _Type.GetArrayRank _Type.GetArrayRank Method

定義

為 COM 物件提供與版本無關的 GetArrayRank() 方法之存取權。Provides COM objects with version-independent access to the GetArrayRank() method.

public:
 int GetArrayRank();
public int GetArrayRank ();
abstract member GetArrayRank : unit -> int
Public Function GetArrayRank () As Integer

傳回

Int32,包含目前 Type 中的維度數目。An Int32 containing the number of dimensions in the current Type.

備註

這個方法會從 unmanaged 程式碼,是用於存取 managed 類別,並不會呼叫從 managed 程式碼。This method is for access to managed classes from unmanaged code, and should not be called from managed code.

Type.GetArrayRank方法會取得中的維度數目ArrayThe Type.GetArrayRank method gets the number of dimensions in an Array.

適用於