Partager via


Propriété Count

Gets the number of ServerInstance objects in the referenced collection.

Espace de noms :  Microsoft.SqlServer.Management.Smo.Wmi
Assembly :  Microsoft.SqlServer.SqlWmiManagement (en Microsoft.SqlServer.SqlWmiManagement.dll)

Syntaxe

'Déclaration
Public ReadOnly Property Count As Integer
    Get
'Utilisation
Dim instance As ServerInstanceCollection
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

Valeur de propriété

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

Implémente

ICollection. . :: . .Count