ServiceCount Property
The number of services on the device.
Syntax
[VB.NET] Public Property ServiceCount As Integer
[C#] public int ServiceCount {get; set;}
Remarks
This property shows how many services are present on the device.
This property is populated after calling ListServices. Set ServiceIndex from 0 to ServiceCount, and then examine the Service properties such as ServiceAddress, ServiceName, and ServiceClassId to retrieve information about each service.
Default Value
0