ServerAliasCollection Clase
The ServerAliasCollection class represents a collection of ServerAlias objects that represent all the SQL Server aliases defined on the parent object.
Espacio de nombres: Microsoft.SqlServer.Management.Smo.Wmi
Ensamblado: Microsoft.SqlServer.SqlWmiManagement (en Microsoft.SqlServer.SqlWmiManagement.dll)
Sintaxis
'Declaración
Public NotInheritable Class ServerAliasCollection _
Inherits WmiCollectionBase _
Implements ICollection, IEnumerable
'Uso
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
Notas
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
Todos los miembros estáticos (compartidos en Microsoft Visual Basic) públicos de este tipo son seguros para operaciones multiproceso. No se garantiza que los miembros de instancia sean seguros para subprocesos.
Jerarquía de herencia
System. . :: . .Object
Microsoft.SqlServer.Management.Smo.Wmi. . :: . .WmiCollectionBase
Microsoft.SqlServer.Management.Smo.Wmi..::..ServerAliasCollection
Seguridad para subprocesos
Todos los miembros públicos static (Shared en Visual Basic) de este tipo son seguros para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.
Vea también