共用方式為


TabletDeviceCollection.Count 屬性

定義

取得集合中的物件數量 TabletDevice

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

屬性值

收藏中的物件數量 TabletDevice

實作

範例

以下範例展示了該 Count 性質。

// Get the number of tablet devices
int numTabletDevices = myTabletDeviceCollection.Count;
'  Get the number of tablet devices
Dim numTabletDevices As Integer = myTabletDeviceCollection.Count

適用於