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 référencez pas directement 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é protégée PropertyStorageProvider Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (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 protégée AlterImpl Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode protégée CheckObjectCreated Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode protégée CheckObjectState Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
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 référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode protégée CreateImpl Ne référencez pas directement 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 protégée DropImpl Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
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 Finalize (hérité de Object.)
Méthode protégée GetChildCollection Ne référencez pas directement 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 référencez pas directement 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 référencez pas directement 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 référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode protégée MarkForDropImpl Returns a value that indicates the existing objects to be dropped. Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode protégée MarkRootAsConnected Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode publique Move Specifies the RegisteredServersServerGroup object to move in a new location.
Méthode protégée MoveImpl Indicates the new parent object to move in an instance. Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
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 protégée PostAlter Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode protégée PostCreate Indicates the default implementor that creates the execution result. Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode protégée PostDrop Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode protégée PostMove Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode protégée PostRename Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (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 RenameImpl Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode protégée ResetKey Ne référencez pas directement 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 protégée UpdateUIPropertyState Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode protégée Validate() () () () Indicates the basic child object's validation. Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode publique Validate(String, array<Object> [] () [] []) 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 protégé propertyChanged Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Événement public PropertyChanged CLS-compliant event for property changes. (hérité de SfcInstance.)
Événement protégé propertyMetadataChanged Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (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 référencez pas directement 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 référencez pas directement 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 référencez pas directement 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 référencez pas directement 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 référencez pas directement 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 référencez pas directement 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.