Vector<T>.Count 屬性

定義

傳回向量中儲存的項目數。

public:
 static property int Count { int get(); };
public static int Count { get; }
static member Count : int
static member Count : int
Public Shared ReadOnly Property Count As Integer

屬性值

向量中儲存的項目數。

例外狀況

不支援透過反射屬性存取 getter 屬性。

-或-

.NET 5 和更新版本:不支援類型 T

適用於