Condividi tramite


Classe ServerGroup

The ServerGroup class represents a SQL Server server group.

Gerarchia di ereditarietà

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

Spazio dei nomi  Microsoft.SqlServer.Management.RegisteredServers
Assembly:  Microsoft.SqlServer.Management.RegisteredServers (in Microsoft.SqlServer.Management.RegisteredServers.dll)

Sintassi

'Dichiarazione
Public NotInheritable Class ServerGroup _
    Inherits ServerGroupParent _
    Implements ISfcValidate, ISfcCreatable, ICreatable, ISfcAlterable,  _
    IAlterable, ISfcDroppable, IDroppable, ISfcRenamable, IRenamable,  _
    ISfcMovable
'Utilizzo
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

Nel tipo ServerGroup sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico ServerGroup() Initializes a new instance of the ServerGroup class.
Metodo pubblico ServerGroup(String) Initializes a new instance of the ServerGroup class that has the specified name.
Metodo pubblico 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 alto

Proprietà

  Nome Descrizione
Proprietà protetta AbstractIdentityKey Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Proprietà pubblica Description Gets the name of the server group.
Proprietà pubblica DisplayName Gets the display name of the server group.
Proprietà pubblica ID Gets the ID value that uniquely identifies the server group.
Proprietà pubblica IdentityKey Gets the key value that uniquely identifies the server group.
Proprietà pubblica IsDropped Gets the Boolean value that specifies whether the server group has been dropped or not.
Proprietà pubblica IsLocal Gets the Boolean value that specifies whether the server group local.
Proprietà pubblica IsSystemServerGroup Gets the Boolean value that specifies whether the server group is a system object.
Proprietà pubblica Metadata Returns metadata about the instance and its domain. Ereditato da SfcInstance.
Proprietà pubblica Name Gets the name of the server group.
Proprietà pubblica Parent Gets the parent of the ServerGroup object.
Proprietà pubblica Properties Returns a collection instance properties. Ereditato da SfcInstance.
Proprietà pubblica RegisteredServers Represents a collection of RegisteredServers objects. Each RegisteredServers object represents a registered server.
Proprietà pubblica ServerGroups Represents a collection of ServerGroup objects. Each ServerGroup object represents a server group.
Proprietà pubblica ServerType Gets or the type of server that is associated with the server group.
Proprietà protetta State Returns the state of the SfcInstance object. Ereditato da SfcInstance.
Proprietà pubblica Urn Returns the uniform resource name of the SfcInstance object. Ereditato da SfcInstance.

In alto

Metodi

  Nome Descrizione
Metodo pubblico Alter Updates any ServerGroup object property changes on the instance of SQL Server. 
Metodo pubblico Create Creates a registered server on the instance of SQL Server as defined by the ServerGroup object.
Metodo protetto CreateIdentityKey Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo pubblico Discover Discovers the dependency relationship for the server group. Esegue l'override di SfcInstance.Discover(ISfcDependencyDiscoveryObjectSink).
Metodo pubblico Drop Drops the registered server.
Metodo pubblico Equals Ereditato da Object.
Metodo pubblico Export Exports the server group to the specified file and using the specified credential persistence type.
Metodo protetto GetChildCollection Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo pubblico GetDescendantRegisteredServers Returns a list of the registered servers in a server group.
Metodo pubblico GetDomain Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo pubblicoMembro statico GetObjectFactory Returns the SFC object factory for the ServerGroup object.
Metodo pubblico GetPropertySet Returns the set of properties for the SfcInstance object. Ereditato da SfcInstance.
Metodo pubblico GetType Ereditato da Object.
Metodo protetto GetTypeMetadataImpl Indicates the domains that override by returning the right TypeMetadata class directly. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo pubblico Import Imports groups and servers saved to an XML file and adds them as children of the server group.
Metodo protetto InitializeUIPropertyState Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo pubblico Move Specifies the RegisteredServersServerGroup object to move in a new location.
Metodo protetto OnPropertyMetadataChanges Invoked whenever the effective value of any SfcInstance metadata is updated. Ereditato da SfcInstance.
Metodo protetto OnPropertyValueChanges Invoked whenever the effective value of any SfcInstance property is updated. Ereditato da SfcInstance.
Metodo pubblico Refresh Refreshes the object's properties by reading them from the server. Ereditato da SfcInstance.
Metodo pubblico Rename(String) Renames the ServerGroup object by using the specified name.
Metodo pubblico Rename(SfcKey) Renames the ServerGroup object by using the specified name.
Metodo protetto ResetKey Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo pubblico Serialize Serializes the instance to XML. Ereditato da SfcInstance.
Metodo pubblico ToString Returns a string representation of the instance Urn. Ereditato da SfcInstance.
Metodo pubblico Validate Validates the ServerGroup object against the specified method and arguments.

In alto

Eventi

  Nome Descrizione
Evento pubblico DuplicateFound An event raised if a duplicate registered server group is encountered.
Evento pubblico PropertyChanged CLS-compliant event for property changes. Ereditato da SfcInstance.
Evento pubblico PropertyMetadataChanged CLS-compliant event for property metadata changes. Ereditato da SfcInstance.

In alto

Implementazioni esplicite dell'interfaccia

  Nome Descrizione
Implementazione esplicita dell'interfacciaMetodo privato ISfcAlterable.ScriptAlter Alters the properties of the base object if it has been changed. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server..
Implementazione esplicita dell'interfacciaMetodo privato ISfcCreatable.ScriptCreate Produces the script to create this object to storage in its current state. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server..
Implementazione esplicita dell'interfacciaMetodo privato ISfcDroppable.ScriptDrop Produces the script to drop this object from storage. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server..
Implementazione esplicita dell'interfacciaMetodo privato ISfcMovable.Move Moves the ServerGroup object under the specified parent object and updates the storage to reflect the move.Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server..
Implementazione esplicita dell'interfacciaMetodo privato ISfcMovable.ScriptMove Produces the script to move this object under the specified parent object.Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server..
Implementazione esplicita dell'interfacciaMetodo privato ISfcRenamable.ScriptRename Renames the instance of ISfcScript object identified by the key parameter. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server..

In alto

Osservazioni

Questo spazio dei nomi, classe o membro è supportato solo nella versione 2.0 di Microsoft .NET Framework.

Thread Safety

Tutti i membri statici pubblici (Shared in Microsoft Visual Basic) di questo tipo sono sicuri per le operazioni a thread multipli. Non è invece garantita la sicurezza dei membri dell'istanza.

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.

Vedere anche

Riferimento

Spazio dei nomi Microsoft.SqlServer.Management.RegisteredServers