_Type.GetArrayRank 方法

定義

為 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.

備註

這個方法是用來從非受控程式碼存取 managed 類別,而且不應該從 managed 程式碼呼叫。This method is for access to managed classes from unmanaged code, and should not be called from managed code.

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

適用於