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