Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
The ServiceCollection class represents a collection of Service objects that represent all SQL Server services defined on the parent object.
Vererbungshierarchie
System.Object
Microsoft.SqlServer.Management.Smo.Wmi.WmiCollectionBase
Microsoft.SqlServer.Management.Smo.Wmi.ServiceCollection
Namespace: Microsoft.SqlServer.Management.Smo.Wmi
Assembly: Microsoft.SqlServer.SqlWmiManagement (in Microsoft.SqlServer.SqlWmiManagement.dll)
Syntax
'Declaration
Public NotInheritable Class ServiceCollection _
Inherits WmiCollectionBase _
Implements ICollection, IEnumerable
'Usage
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
Der ServiceCollection-Typ macht folgende Elemente verfügbar.
Eigenschaften
| Name | Beschreibung | |
|---|---|---|
![]() |
Count | Gets the number of Service objects in the referenced collection. |
![]() |
IsSynchronized | Gets the Boolean property value that specifies whether access to the collection is synchronized (thread safe). (Geerbt von WmiCollectionBase.) |
![]() |
Item[Int32] | Gets a Service object in the collection by index number. |
![]() |
Item[String] | Gets a Service object in the collection by name. |
![]() |
Parent | Gets the ManagedComputer object that is the parent of the ServiceCollection object. |
![]() |
SyncRoot | Gets an object that can be used to synchronize access to the collection. (Geerbt von WmiCollectionBase.) |
Zum Anfang
Methoden
| Name | Beschreibung | |
|---|---|---|
![]() |
Contains | Checks whether the specified key value exists in the collection. |
![]() |
CopyTo | Copies the collection objects to a one-dimensional array beginning at the index value specified. |
![]() |
Equals | (Geerbt von Object.) |
![]() |
GetEnumerator | Returns an IEnumerator interface that allows you to iterate through the objects in the collection. |
![]() |
GetHashCode | (Geerbt von Object.) |
![]() |
GetType | (Geerbt von Object.) |
![]() |
ToString | (Geerbt von Object.) |
Zum Anfang
Felder
| Name | Beschreibung | |
|---|---|---|
![]() |
initialized | Defines a boolean method that initializes the collection of objects in the Windows Management Instrumentation (WMI) object preference. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von WmiCollectionBase.) |
![]() |
innerColl | Nur für Informationszwecke identifiziert. Nicht unterstützt. Zukünftige Kompatibilität wird nicht sichergestellt. (Geerbt von WmiCollectionBase.) |
Zum Anfang
Explizite Schnittstellenimplementierungen
| Name | Beschreibung | |
|---|---|---|
![]() ![]() |
ICollection.CopyTo | Copies the collection objects to a one-dimensional array beginning at the index value specified. |
Zum Anfang
Hinweise
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
Alle öffentlichen, statischen Elemente dieses Typs (Shared in Microsoft Visual Basic) sind für Vorgänge mit mehreren Threads sicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.
Beispiele
Threadsicherheit
Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.
.gif)
.gif)
.gif)
.gif)
.gif)