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 ServerInstanceCollection class represents a collection of ServerInstance objects that represent all the instances of SQL Server defined on the parent object.
Vererbungshierarchie
System.Object
Microsoft.SqlServer.Management.Smo.Wmi.WmiCollectionBase
Microsoft.SqlServer.Management.Smo.Wmi.ServerInstanceCollection
Namespace: Microsoft.SqlServer.Management.Smo.Wmi
Assembly: Microsoft.SqlServer.SqlWmiManagement (in Microsoft.SqlServer.SqlWmiManagement.dll)
Syntax
'Declaration
Public NotInheritable Class ServerInstanceCollection _
Inherits WmiCollectionBase _
Implements ICollection, IEnumerable
'Usage
Dim instance As ServerInstanceCollection
public sealed class ServerInstanceCollection : WmiCollectionBase,
ICollection, IEnumerable
public ref class ServerInstanceCollection sealed : public WmiCollectionBase,
ICollection, IEnumerable
[<SealedAttribute>]
type ServerInstanceCollection =
class
inherit WmiCollectionBase
interface ICollection
interface IEnumerable
end
public final class ServerInstanceCollection extends WmiCollectionBase implements ICollection, IEnumerable
Der ServerInstanceCollection-Typ macht folgende Elemente verfügbar.
Eigenschaften
| Name | Beschreibung | |
|---|---|---|
![]() |
Count | Gets the number of ServerInstance 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 ServerInstance object in the collection by index number. |
![]() |
Item[String] | Gets a ServerInstance object in the collection by name. |
![]() |
Parent | Gets the ManagedComputer object that is the parent of the ServerInstanceCollection 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 ServerInstanceCollection object can be used to gain access to a set of instances of SQL Server. You can use the Item property to return a specific ServerInstance 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.
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)