Classe ServiceCollection
The ServiceCollection class represents a collection of Service objects that represent all SQL Server services defined on the parent object.
Espace de noms : Microsoft.SqlServer.Management.Smo.Wmi
Assembly : Microsoft.SqlServer.SqlWmiManagement (dans Microsoft.SqlServer.SqlWmiManagement.dll)
Syntaxe
'Déclaration
Public NotInheritable Class ServiceCollection _
Inherits WmiCollectionBase _
Implements ICollection, IEnumerable
'Utilisation
Dim instance As ServiceCollection
public sealed class ServiceCollection : WmiCollectionBase,
ICollection, IEnumerable
public ref class ServiceCollection sealed : public WmiCollectionBase,
ICollection, IEnumerable
[<SealedAttribute>]
type ServiceCollection =
class
inherit WmiCollectionBase
interface ICollection
interface IEnumerable
end
public final class ServiceCollection extends WmiCollectionBase implements ICollection, IEnumerable
Notes
A ServiceCollection object can be used to gain access to a set of SQL Server services. You can use the Item property to return a specific Service object.
Thread Safety
Tout membre statique public (Partagé dans Microsoft Visual Basic) de ce type est sûr dans le cadre des opérations à plusieurs threads. Tous les membres de l'instance ne sont pas garantis comme sûrs.
Hiérarchie d'héritage
System. . :: . .Object
Microsoft.SqlServer.Management.Smo.Wmi. . :: . .WmiCollectionBase
Microsoft.SqlServer.Management.Smo.Wmi..::..ServiceCollection
Sécurité des threads
Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Il n'est pas garanti que les membres d'instance soient thread-safe.
Voir aussi