Freigeben über


ServerGroup-Klasse

Hinweis: Diese API ist veraltet.

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

Vererbungshierarchie

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

Namespace:  Microsoft.SqlServer.Management.Smo.RegisteredServers
Assembly:  Microsoft.SqlServer.SmoExtended (in Microsoft.SqlServer.SmoExtended.dll)

Syntax

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

Der ServerGroup-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode ServerGroup() Initializes a new instance of the ServerGroup object.
Öffentliche Methode ServerGroup(String) Initializes a new instance of the ServerGroup object that has the specified name.
Öffentliche Methode ServerGroup(ServerGroup, String) Initializes a new instance of the ServerGroup object based on the specified server group and with the specified name.

Zum Anfang

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft Description Gets or sets the textual description of the referenced group of registered servers.
Öffentliche Eigenschaft Name Gets or sets the name of the object. (Geerbt von RegSvrSmoObject.)
Öffentliche Eigenschaft Parent Gets or sets the ServerGroup object that is the parent of the referenced ServerGroup object.
Öffentliche Eigenschaft Path Gets the path of the referenced server group.
Öffentliche Eigenschaft Properties Gets the properties associated with the object. (Geerbt von RegSvrSmoObject.)
Öffentliche Eigenschaft RegisteredServers Represents a collection of RegisteredServer objects. Each RegisteredServer object represents a registered server that is included in the parent server group. (Geerbt von ServerGroupBase.)
Öffentliche Eigenschaft ServerGroups Represents a collection of ServerGroup objects. Each ServerGroup object represents a server group that is included in the parent server group. (Geerbt von ServerGroupBase.)
Öffentliche Eigenschaft ServerType Gets the Guid object value that specifies the type of server associated with the server group.
Öffentliche Eigenschaft State Gets the state of the referenced object. (Geerbt von SmoObjectBase.)
Öffentliche Eigenschaft Urn Gets the Urn object value that represents the server group. (Überschreibt RegSvrSmoObject.Urn.)
Geschützte Eigenschaft UrnSkeleton Gets the Urn object that represents the object. (Geerbt von RegSvrSmoObject.)
Öffentliche Eigenschaft UserData Gets or sets user-defined data associated with the referenced object. (Geerbt von SmoObjectBase.)

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Alter Updates any ServerGroupBase object property changes on the instance of Microsoft SQL Server. (Geerbt von ServerGroupBase.)
Geschützte Methode ClearCollections Clears the server group collections. (Geerbt von ServerGroupBase.)
Öffentliche Methode Create Creates a server group on the instance of Microsoft SQL Server as defined by the ServerGroupBase object. (Geerbt von ServerGroupBase.)
Öffentliche Methode Drop Removes the ServerGroupBase from the parent server group. (Geerbt von ServerGroupBase.)
Öffentliche Methode Equals (Geerbt von Object.)
Öffentliche Methode GetHashCode (Geerbt von Object.)
Öffentliche Methode GetSmoObject Gets a RegSvrSmoObject that is specified by a URN. (Geerbt von ServerGroupBase.)
Öffentliche Methode GetType (Geerbt von Object.)
Öffentliche Methode Initialize Initializes the object. (Geerbt von RegSvrSmoObject.)
Geschützte Methode IsObjectInitialized Gets a Boolean value that specifies whether the object was initialized. (Geerbt von RegSvrSmoObject.)
Öffentliche Methode Refresh Refreshes the properties of the object. (Geerbt von RegSvrSmoObject.)
Geschützte Methode SetParentImpl Sets a parent. (Geerbt von RegSvrSmoObject.)
Öffentliche Methode ToString (Geerbt von Object.)
Öffentliche Methode Validate Validates the state of an object. (Geerbt von SmoObjectBase.)

Zum Anfang

Hinweise

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

Thread Safety

Alle öffentlichen, statischen Elemente dieses Typs (Shared in Microsoft Visual Basic) sind für Vorgänge mit mehreren Threads sicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.

Siehe auch

Verweis

Microsoft.SqlServer.Management.Smo.RegisteredServers-Namespace

Andere Ressourcen

Verwalten registrierter Server

sp_ActiveDirectory_SCP (Transact-SQL)