Compartilhar via


Classe ServerGroup

Observação: essa API está obsoleta.

The ServerGroup object represents a group of Microsoft SQL Server registered servers.

Hierarquia de herança

System.Object
  Microsoft.SqlServer.Management.Smo.SmoObjectBase
    Microsoft.SqlServer.Management.Smo.RegisteredServers.RegSvrSmoObject
      Microsoft.SqlServer.Management.Smo.RegisteredServers.ServerGroupBase
        Microsoft.SqlServer.Management.Smo.RegisteredServers.ServerGroup

Namespace:  Microsoft.SqlServer.Management.Smo.RegisteredServers
Assembly:  Microsoft.SqlServer.SmoExtended (em Microsoft.SqlServer.SmoExtended.dll)

Sintaxe

'Declaração
<ObsoleteAttribute("Instead use namespace Microsoft.SqlServer.Management.RegisteredServers")> _
Public NotInheritable Class ServerGroup _
    Inherits ServerGroupBase
'Uso
Dim instance As ServerGroup
[ObsoleteAttribute("Instead use namespace Microsoft.SqlServer.Management.RegisteredServers")]
public sealed class ServerGroup : ServerGroupBase
[ObsoleteAttribute(L"Instead use namespace Microsoft.SqlServer.Management.RegisteredServers")]
public ref class ServerGroup sealed : public ServerGroupBase
[<SealedAttribute>]
[<ObsoleteAttribute("Instead use namespace Microsoft.SqlServer.Management.RegisteredServers")>]
type ServerGroup =  
    class 
        inherit ServerGroupBase 
    end
public final class ServerGroup extends ServerGroupBase

O tipo ServerGroup expõe os membros a seguir.

Construtores

  Nome Descrição
Método público ServerGroup() Initializes a new instance of the ServerGroup object.
Método público ServerGroup(String) Initializes a new instance of the ServerGroup object that has the specified name.
Método público ServerGroup(ServerGroup, String) Initializes a new instance of the ServerGroup object based on the specified server group and with the specified name.

Início

Propriedades

  Nome Descrição
Propriedade pública Description Gets or sets the textual description of the referenced group of registered servers.
Propriedade pública Name Gets or sets the name of the object. (Herdado de RegSvrSmoObject.)
Propriedade pública Parent Gets or sets the ServerGroup object that is the parent of the referenced ServerGroup object.
Propriedade pública Path Gets the path of the referenced server group.
Propriedade pública Properties Gets the properties associated with the object. (Herdado de RegSvrSmoObject.)
Propriedade pública RegisteredServers Represents a collection of RegisteredServer objects. Each RegisteredServer object represents a registered server that is included in the parent server group. (Herdado de ServerGroupBase.)
Propriedade pública ServerGroups Represents a collection of ServerGroup objects. Each ServerGroup object represents a server group that is included in the parent server group. (Herdado de ServerGroupBase.)
Propriedade pública ServerType Gets the Guid object value that specifies the type of server associated with the server group.
Propriedade pública State Gets the state of the referenced object. (Herdado de SmoObjectBase.)
Propriedade pública Urn Gets the Urn object value that represents the server group. (Substitui RegSvrSmoObject.Urn.)
Propriedade protegida UrnSkeleton Gets the Urn object that represents the object. (Herdado de RegSvrSmoObject.)
Propriedade pública UserData Gets or sets user-defined data associated with the referenced object. (Herdado de SmoObjectBase.)

Início

Métodos

  Nome Descrição
Método público Alter Updates any ServerGroupBase object property changes on the instance of Microsoft SQL Server. (Herdado de ServerGroupBase.)
Método protegido ClearCollections Clears the server group collections. (Herdado de ServerGroupBase.)
Método público Create Creates a server group on the instance of Microsoft SQL Server as defined by the ServerGroupBase object. (Herdado de ServerGroupBase.)
Método público Drop Removes the ServerGroupBase from the parent server group. (Herdado de ServerGroupBase.)
Método público Equals (Herdado de Object.)
Método público GetHashCode (Herdado de Object.)
Método público GetSmoObject Gets a RegSvrSmoObject that is specified by a URN. (Herdado de ServerGroupBase.)
Método público GetType (Herdado de Object.)
Método público Initialize Initializes the object. (Herdado de RegSvrSmoObject.)
Método protegido IsObjectInitialized Gets a Boolean value that specifies whether the object was initialized. (Herdado de RegSvrSmoObject.)
Método público Refresh Refreshes the properties of the object. (Herdado de RegSvrSmoObject.)
Método protegido SetParentImpl Sets a parent. (Herdado de RegSvrSmoObject.)
Método público ToString (Herdado de Object.)
Método público Validate Validates the state of an object. (Herdado de SmoObjectBase.)

Início

Comentários

To get or set ServerGroup object properties, users must be a member of the sysadmin fixed server role.

Thread Safety

Qualquer membro público estático (Compartilhado no Microsoft Visual Basic) desse tipo é seguro para operações multi-threaded. Não há garantia de que qualquer membro de instância seja seguro para threads.

Segurança de thread

Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.

Consulte também

Referência

Namespace Microsoft.SqlServer.Management.Smo.RegisteredServers

Outros recursos

Gerenciando servidores registrados

sp_ActiveDirectory_SCP (Transact-SQL)