語言

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

屬性值

向量中儲存的元素數量。

例外狀況

不支援透過反射方式存取屬性收集器。

-或-

.NET 5 及以後版本:不支援型別 T 。

適用於