Partager via


Classe ServerGroup

Remarque : cette API est désormais obsolète.

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

Hiérarchie d'héritage

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

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

Syntaxe

'Déclaration
<ObsoleteAttribute("Instead use namespace Microsoft.SqlServer.Management.RegisteredServers")> _
Public NotInheritable Class ServerGroup _
    Inherits ServerGroupBase
'Utilisation
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

Le type ServerGroup expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique ServerGroup() Initializes a new instance of the ServerGroup object.
Méthode publique ServerGroup(String) Initializes a new instance of the ServerGroup object that has the specified name.
Méthode publique ServerGroup(ServerGroup, String) Initializes a new instance of the ServerGroup object based on the specified server group and with the specified name.

Haut de la page

Propriétés

  Nom Description
Propriété publique Description Gets or sets the textual description of the referenced group of registered servers.
Propriété publique Name Gets or sets the name of the object. (hérité de RegSvrSmoObject.)
Propriété publique Parent Gets or sets the ServerGroup object that is the parent of the referenced ServerGroup object.
Propriété publique Path Gets the path of the referenced server group.
Propriété publique Properties Gets the properties associated with the object. (hérité de RegSvrSmoObject.)
Propriété publique RegisteredServers Represents a collection of RegisteredServer objects. Each RegisteredServer object represents a registered server that is included in the parent server group. (hérité de ServerGroupBase.)
Propriété publique ServerGroups Represents a collection of ServerGroup objects. Each ServerGroup object represents a server group that is included in the parent server group. (hérité de ServerGroupBase.)
Propriété publique ServerType Gets the Guid object value that specifies the type of server associated with the server group.
Propriété publique State Gets the state of the referenced object. (hérité de SmoObjectBase.)
Propriété publique Urn Gets the Urn object value that represents the server group. (remplace RegSvrSmoObject.Urn.)
Propriété protégée UrnSkeleton Gets the Urn object that represents the object. (hérité de RegSvrSmoObject.)
Propriété publique UserData Gets or sets user-defined data associated with the referenced object. (hérité de SmoObjectBase.)

Haut de la page

Méthodes

  Nom Description
Méthode publique Alter Updates any ServerGroupBase object property changes on the instance of Microsoft SQL Server. (hérité de ServerGroupBase.)
Méthode protégée ClearCollections Clears the server group collections. (hérité de ServerGroupBase.)
Méthode publique Create Creates a server group on the instance of Microsoft SQL Server as defined by the ServerGroupBase object. (hérité de ServerGroupBase.)
Méthode publique Drop Removes the ServerGroupBase from the parent server group. (hérité de ServerGroupBase.)
Méthode publique Equals (hérité de Object.)
Méthode publique GetHashCode (hérité de Object.)
Méthode publique GetSmoObject Gets a RegSvrSmoObject that is specified by a URN. (hérité de ServerGroupBase.)
Méthode publique GetType (hérité de Object.)
Méthode publique Initialize Initializes the object. (hérité de RegSvrSmoObject.)
Méthode protégée IsObjectInitialized Gets a Boolean value that specifies whether the object was initialized. (hérité de RegSvrSmoObject.)
Méthode publique Refresh Refreshes the properties of the object. (hérité de RegSvrSmoObject.)
Méthode protégée SetParentImpl Sets a parent. (hérité de RegSvrSmoObject.)
Méthode publique ToString (hérité de Object.)
Méthode publique Validate Validates the state of an object. (hérité de SmoObjectBase.)

Haut de la page

Notes

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

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

Autres ressources

Gestion des serveurs inscrits

sp_ActiveDirectory_SCP (Transact-SQL)