Compartilhar via


Classe ServerGroup

The ServerGroup class represents a SQL Server server group.

Hierarquia de herança

System.Object
  Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance
    Microsoft.SqlServer.Management.RegisteredServers.ServerGroupParent
      Microsoft.SqlServer.Management.RegisteredServers.ServerGroup

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

Sintaxe

'Declaração
Public NotInheritable Class ServerGroup _
    Inherits ServerGroupParent _
    Implements ISfcValidate, ISfcCreatable, ICreatable, ISfcAlterable,  _
    IAlterable, ISfcDroppable, IDroppable, ISfcRenamable, IRenamable,  _
    ISfcMovable
'Uso
Dim instance As ServerGroup
public sealed class ServerGroup : ServerGroupParent, 
    ISfcValidate, ISfcCreatable, ICreatable, ISfcAlterable, IAlterable, 
    ISfcDroppable, IDroppable, ISfcRenamable, IRenamable, ISfcMovable
public ref class ServerGroup sealed : public ServerGroupParent, 
    ISfcValidate, ISfcCreatable, ICreatable, ISfcAlterable, IAlterable, 
    ISfcDroppable, IDroppable, ISfcRenamable, IRenamable, ISfcMovable
[<SealedAttribute>]
type ServerGroup =  
    class 
        inherit ServerGroupParent 
        interface ISfcValidate 
        interface ISfcCreatable 
        interface ICreatable 
        interface ISfcAlterable 
        interface IAlterable 
        interface ISfcDroppable 
        interface IDroppable 
        interface ISfcRenamable 
        interface IRenamable 
        interface ISfcMovable 
    end
public final class ServerGroup extends ServerGroupParent implements ISfcValidate, ISfcCreatable, ICreatable, ISfcAlterable, IAlterable, ISfcDroppable, IDroppable, ISfcRenamable, IRenamable, ISfcMovable

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 class.
Método público ServerGroup(String) Initializes a new instance of the ServerGroup class that has the specified name.
Método público ServerGroup(ServerGroup, String) Initializes a new instance of the ServerGroup class that has the specified name and is a subgroup of the specified parent.

Início

Propriedades

  Nome Descrição
Propriedade protegida AbstractIdentityKey Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Propriedade pública Description Gets the name of the server group.
Propriedade pública DisplayName Gets the display name of the server group.
Propriedade pública ID Gets the ID value that uniquely identifies the server group.
Propriedade pública IdentityKey Gets the key value that uniquely identifies the server group.
Propriedade pública IsDropped Gets the Boolean value that specifies whether the server group has been dropped or not.
Propriedade pública IsLocal Gets the Boolean value that specifies whether the server group local.
Propriedade pública IsSystemServerGroup Gets the Boolean value that specifies whether the server group is a system object.
Propriedade pública Metadata Returns metadata about the instance and its domain. (Herdado de SfcInstance.)
Propriedade pública Name Gets the name of the server group.
Propriedade pública Parent Gets the parent of the ServerGroup object.
Propriedade pública Properties Returns a collection instance properties. (Herdado de SfcInstance.)
Propriedade pública RegisteredServers Represents a collection of RegisteredServers objects. Each RegisteredServers object represents a registered server.
Propriedade pública ServerGroups Represents a collection of ServerGroup objects. Each ServerGroup object represents a server group.
Propriedade pública ServerType Gets or the type of server that is associated with the server group.
Propriedade protegida State Returns the state of the SfcInstance object. (Herdado de SfcInstance.)
Propriedade pública Urn Returns the uniform resource name of the SfcInstance object. (Herdado de SfcInstance.)

Início

Métodos

  Nome Descrição
Método público Alter Updates any ServerGroup object property changes on the instance of SQL Server. 
Método público Create Creates a registered server on the instance of SQL Server as defined by the ServerGroup object.
Método protegido CreateIdentityKey Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Método público Discover Discovers the dependency relationship for the server group. (Substitui SfcInstance.Discover(ISfcDependencyDiscoveryObjectSink).)
Método público Drop Drops the registered server.
Método público Equals (Herdado de Object.)
Método público Export Exports the server group to the specified file and using the specified credential persistence type.
Método protegido GetChildCollection Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Método público GetDescendantRegisteredServers Returns a list of the registered servers in a server group.
Método público GetDomain Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Método público GetHashCode (Herdado de Object.)
Método públicoMembro estático GetObjectFactory Returns the SFC object factory for the ServerGroup object.
Método público GetPropertySet Returns the set of properties for the SfcInstance object. (Herdado de SfcInstance.)
Método público GetType (Herdado de Object.)
Método protegido GetTypeMetadataImpl Indicates the domains that override by returning the right TypeMetadata class directly. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Método público Import Imports groups and servers saved to an XML file and adds them as children of the server group.
Método protegido InitializeUIPropertyState Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Método público Move Specifies the RegisteredServersServerGroup object to move in a new location.
Método protegido OnPropertyMetadataChanges Invoked whenever the effective value of any SfcInstance metadata is updated. (Herdado de SfcInstance.)
Método protegido OnPropertyValueChanges Invoked whenever the effective value of any SfcInstance property is updated. (Herdado de SfcInstance.)
Método público Refresh Refreshes the object's properties by reading them from the server. (Herdado de SfcInstance.)
Método público Rename(String) Renames the ServerGroup object by using the specified name.
Método público Rename(SfcKey) Renames the ServerGroup object by using the specified name.
Método protegido ResetKey Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Método público Serialize Serializes the instance to XML. (Herdado de SfcInstance.)
Método público ToString Returns a string representation of the instance Urn. (Herdado de SfcInstance.)
Método público Validate Validates the ServerGroup object against the specified method and arguments.

Início

Eventos

  Nome Descrição
Evento público DuplicateFound An event raised if a duplicate registered server group is encountered.
Evento público PropertyChanged CLS-compliant event for property changes. (Herdado de SfcInstance.)
Evento público PropertyMetadataChanged CLS-compliant event for property metadata changes. (Herdado de SfcInstance.)

Início

Implementações de interfaces explícitas

  Nome Descrição
Implementações de interfaces explícitasMétodo privado ISfcAlterable.ScriptAlter Alters the properties of the base object if it has been changed. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server..
Implementações de interfaces explícitasMétodo privado ISfcCreatable.ScriptCreate Produces the script to create this object to storage in its current state. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server..
Implementações de interfaces explícitasMétodo privado ISfcDroppable.ScriptDrop Produces the script to drop this object from storage. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server..
Implementações de interfaces explícitasMétodo privado ISfcMovable.Move Moves the ServerGroup object under the specified parent object and updates the storage to reflect the move.Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server..
Implementações de interfaces explícitasMétodo privado ISfcMovable.ScriptMove Produces the script to move this object under the specified parent object.Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server..
Implementações de interfaces explícitasMétodo privado ISfcRenamable.ScriptRename Renames the instance of ISfcScript object identified by the key parameter. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server..

Início

Comentários

Só há suporte para esse namespace, classe ou membro na versão 2.0 do Microsoft .NET Framework.

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.RegisteredServers