Partager via


Classe ServerGroup

The ServerGroup class represents a SQL Server server group.

Hiérarchie d'héritage

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

Espace de noms :  Microsoft.SqlServer.Management.RegisteredServers
Assembly :  Microsoft.SqlServer.Management.RegisteredServers (en Microsoft.SqlServer.Management.RegisteredServers.dll)

Syntaxe

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

Le type ServerGroup expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique ServerGroup() Initializes a new instance of the ServerGroup class.
Méthode publique ServerGroup(String) Initializes a new instance of the ServerGroup class that has the specified name.
Méthode publique ServerGroup(ServerGroup, String) Initializes a new instance of the ServerGroup class that has the specified name and is a subgroup of the specified parent.

Haut de la page

Propriétés

  Nom Description
Propriété protégée AbstractIdentityKey Ne faites pas directement référence à ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Propriété publique Description Gets the name of the server group.
Propriété publique DisplayName Gets the display name of the server group.
Propriété publique ID Gets the ID value that uniquely identifies the server group.
Propriété publique IdentityKey Gets the key value that uniquely identifies the server group.
Propriété publique IsDropped Gets the Boolean value that specifies whether the server group has been dropped or not.
Propriété publique IsLocal Gets the Boolean value that specifies whether the server group local.
Propriété publique IsSystemServerGroup Gets the Boolean value that specifies whether the server group is a system object.
Propriété publique Metadata Returns metadata about the instance and its domain. (hérité de SfcInstance.)
Propriété publique Name Gets the name of the server group.
Propriété publique Parent Gets the parent of the ServerGroup object.
Propriété publique Properties Returns a collection instance properties. (hérité de SfcInstance.)
Propriété publique RegisteredServers Represents a collection of RegisteredServers objects. Each RegisteredServers object represents a registered server.
Propriété publique ServerGroups Represents a collection of ServerGroup objects. Each ServerGroup object represents a server group.
Propriété publique ServerType Gets or the type of server that is associated with the server group.
Propriété protégée State Returns the state of the SfcInstance object. (hérité de SfcInstance.)
Propriété publique Urn Returns the uniform resource name of the SfcInstance object. (hérité de SfcInstance.)

Haut de la page

Méthodes

  Nom Description
Méthode publique Alter Updates any ServerGroup object property changes on the instance of SQL Server. 
Méthode publique Create Creates a registered server on the instance of SQL Server as defined by the ServerGroup object.
Méthode protégée CreateIdentityKey Ne faites pas directement référence à ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode publique Discover Discovers the dependency relationship for the server group. (remplace SfcInstance.Discover(ISfcDependencyDiscoveryObjectSink).)
Méthode publique Drop Drops the registered server.
Méthode publique Equals (hérité de Object.)
Méthode publique Export Exports the server group to the specified file and using the specified credential persistence type.
Méthode protégée GetChildCollection Ne faites pas directement référence à ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode publique GetDescendantRegisteredServers Returns a list of the registered servers in a server group.
Méthode publique GetDomain Ne faites pas directement référence à ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode publique GetHashCode (hérité de Object.)
Méthode publiqueMembre statique GetObjectFactory Returns the SFC object factory for the ServerGroup object.
Méthode publique GetPropertySet Returns the set of properties for the SfcInstance object. (hérité de SfcInstance.)
Méthode publique GetType (hérité de Object.)
Méthode protégée GetTypeMetadataImpl Indicates the domains that override by returning the right TypeMetadata class directly. Ne faites pas directement référence à ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode publique Import Imports groups and servers saved to an XML file and adds them as children of the server group.
Méthode protégée InitializeUIPropertyState Ne faites pas directement référence à ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode publique Move Specifies the RegisteredServersServerGroup object to move in a new location.
Méthode protégée OnPropertyMetadataChanges Invoked whenever the effective value of any SfcInstance metadata is updated. (hérité de SfcInstance.)
Méthode protégée OnPropertyValueChanges Invoked whenever the effective value of any SfcInstance property is updated. (hérité de SfcInstance.)
Méthode publique Refresh Refreshes the object's properties by reading them from the server. (hérité de SfcInstance.)
Méthode publique Rename(String) Renames the ServerGroup object by using the specified name.
Méthode publique Rename(SfcKey) Renames the ServerGroup object by using the specified name.
Méthode protégée ResetKey Ne faites pas directement référence à ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode publique Serialize Serializes the instance to XML. (hérité de SfcInstance.)
Méthode publique ToString Returns a string representation of the instance Urn. (hérité de SfcInstance.)
Méthode publique Validate Validates the ServerGroup object against the specified method and arguments.

Haut de la page

Événements

  Nom Description
Événement public DuplicateFound An event raised if a duplicate registered server group is encountered.
Événement public PropertyChanged CLS-compliant event for property changes. (hérité de SfcInstance.)
Événement public PropertyMetadataChanged CLS-compliant event for property metadata changes. (hérité de SfcInstance.)

Haut de la page

Implémentations d'interfaces explicites

  Nom Description
Implémentation d'interface expliciteMéthode privée ISfcAlterable.ScriptAlter Alters the properties of the base object if it has been changed. Ne faites pas directement référence à ce membre dans votre code. Il prend en charge l'infrastructure SQL Server..
Implémentation d'interface expliciteMéthode privée ISfcCreatable.ScriptCreate Produces the script to create this object to storage in its current state. Ne faites pas directement référence à ce membre dans votre code. Il prend en charge l'infrastructure SQL Server..
Implémentation d'interface expliciteMéthode privée ISfcDroppable.ScriptDrop Produces the script to drop this object from storage. Ne faites pas directement référence à ce membre dans votre code. Il prend en charge l'infrastructure SQL Server..
Implémentation d'interface expliciteMéthode privée ISfcMovable.Move Moves the ServerGroup object under the specified parent object and updates the storage to reflect the move.Ne faites pas directement référence à ce membre dans votre code. Il prend en charge l'infrastructure SQL Server..
Implémentation d'interface expliciteMéthode privée ISfcMovable.ScriptMove Produces the script to move this object under the specified parent object.Ne faites pas directement référence à ce membre dans votre code. Il prend en charge l'infrastructure SQL Server..
Implémentation d'interface expliciteMéthode privée ISfcRenamable.ScriptRename Renames the instance of ISfcScript object identified by the key parameter. Ne faites pas directement référence à ce membre dans votre code. Il prend en charge l'infrastructure SQL Server..

Haut de la page

Notes

Cet espace de noms, cette classe ou ce membre est pris en charge uniquement par la version 2.0 de Microsoft .NET Framework.

Thread Safety

Tout membre statique public (Partagé dans Microsoft Visual Basic) de ce type est sûr dans le cadre des opérations à plusieurs threads. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Voir aussi

Référence

Espace de noms Microsoft.SqlServer.Management.RegisteredServers