共用方式為


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

適用於