_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

返回

包含当前 Type 中维数的 Int32An Int32 containing the number of dimensions in the current Type.

注解

此方法用于访问托管类到从非托管代码,不应从托管代码调用。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.

适用于