Share via


ServiceCollection.Count Property

Gets the number of Service objects in the referenced collection.

Namespace:  Microsoft.SqlServer.Management.Smo.Wmi
Assembly:  Microsoft.SqlServer.SqlWmiManagement (in Microsoft.SqlServer.SqlWmiManagement.dll)

Syntax

'Declaration
Public ReadOnly Property Count As Integer 
    Get
'Usage
Dim instance As ServiceCollection 
Dim value As Integer 

value = instance.Count
public int Count { get; }
public:
virtual property int Count {
    int get () sealed;
}
abstract Count : int 
override Count : int
final function get Count () : int

Property Value

Type: System.Int32
An Int32 value that specifies the number of Service objects in the referenced collection.

Implements

ICollection.Count

Examples

Using Collections

See Also

Reference

ServiceCollection Class

Microsoft.SqlServer.Management.Smo.Wmi Namespace