Freigeben über


ServerGroup-Klasse

The ServerGroup class represents a SQL Server server group.

Vererbungshierarchie

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

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

Syntax

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

Der ServerGroup-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode ServerGroup() () () () Initializes a new instance of the ServerGroup class.
Öffentliche Methode ServerGroup(String) Initializes a new instance of the ServerGroup class that has the specified name.
Öffentliche Methode ServerGroup(ServerGroup, String) Initializes a new instance of the ServerGroup class that has the specified name and is a subgroup of the specified parent.

Zum Anfang

Eigenschaften

  Name Beschreibung
Geschützte Eigenschaft AbstractIdentityKey Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Öffentliche Eigenschaft Description Gets the name of the server group.
Öffentliche Eigenschaft DisplayName Gets the display name of the server group.
Öffentliche Eigenschaft ID Gets the ID value that uniquely identifies the server group.
Öffentliche Eigenschaft IdentityKey Gets the key value that uniquely identifies the server group.
Öffentliche Eigenschaft IsDropped Gets the Boolean value that specifies whether the server group has been dropped or not.
Öffentliche Eigenschaft IsLocal Gets the Boolean value that specifies whether the server group local.
Öffentliche Eigenschaft IsSystemServerGroup Gets the Boolean value that specifies whether the server group is a system object.
Öffentliche Eigenschaft Metadata Returns metadata about the instance and its domain. (Geerbt von SfcInstance.)
Öffentliche Eigenschaft Name Gets the name of the server group.
Öffentliche Eigenschaft Parent Gets the parent of the ServerGroup object.
Öffentliche Eigenschaft Properties Returns a collection instance properties. (Geerbt von SfcInstance.)
Geschützte Eigenschaft PropertyStorageProvider Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Öffentliche Eigenschaft RegisteredServers Represents a collection of RegisteredServers objects. Each RegisteredServers object represents a registered server.
Öffentliche Eigenschaft ServerGroups Represents a collection of ServerGroup objects. Each ServerGroup object represents a server group.
Öffentliche Eigenschaft ServerType Gets or the type of server that is associated with the server group.
Geschützte Eigenschaft State Returns the state of the SfcInstance object. (Geerbt von SfcInstance.)
Öffentliche Eigenschaft Urn Returns the uniform resource name of the SfcInstance object. (Geerbt von SfcInstance.)

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Alter Updates any ServerGroup object property changes on the instance of SQL Server. 
Geschützte Methode AlterImpl Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Geschützte Methode CheckObjectCreated Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Geschützte Methode CheckObjectState Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Öffentliche Methode Create Creates a registered server on the instance of SQL Server as defined by the ServerGroup object.
Geschützte Methode CreateIdentityKey Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Geschützte Methode CreateImpl Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Öffentliche Methode Discover Discovers the dependency relationship for the server group. (Überschreibt SfcInstance. . :: . .Discover(ISfcDependencyDiscoveryObjectSink).)
Öffentliche Methode Drop Drops the registered server.
Geschützte Methode DropImpl Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Öffentliche Methode Equals (Geerbt von Object.)
Öffentliche Methode Export Exports the server group to the specified file and using the specified credential persistence type.
Geschützte Methode Finalize (Geerbt von Object.)
Geschützte Methode GetChildCollection Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Öffentliche Methode GetDescendantRegisteredServers Returns a list of the registered servers in a server group.
Öffentliche Methode GetDomain Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Öffentliche Methode GetHashCode (Geerbt von Object.)
Öffentliche MethodeStatisches Element GetObjectFactory Returns the SFC object factory for the ServerGroup object.
Öffentliche Methode GetPropertySet Returns the set of properties for the SfcInstance object. (Geerbt von SfcInstance.)
Öffentliche Methode GetType (Geerbt von Object.)
Geschützte Methode GetTypeMetadataImpl Indicates the domains that override by returning the right TypeMetadata class directly. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Öffentliche Methode Import Imports groups and servers saved to an XML file and adds them as children of the server group.
Geschützte Methode InitializeUIPropertyState Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Geschützte Methode MarkForDropImpl Returns a value that indicates the existing objects to be dropped. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Geschützte Methode MarkRootAsConnected Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Geschützte Methode MemberwiseClone (Geerbt von Object.)
Öffentliche Methode Move Specifies the RegisteredServersServerGroup object to move in a new location.
Geschützte Methode MoveImpl Indicates the new parent object to move in an instance. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Geschützte Methode OnPropertyMetadataChanges Invoked whenever the effective value of any SfcInstance metadata is updated. (Geerbt von SfcInstance.)
Geschützte Methode OnPropertyValueChanges Invoked whenever the effective value of any SfcInstance property is updated. (Geerbt von SfcInstance.)
Geschützte Methode PostAlter Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Geschützte Methode PostCreate Indicates the default implementor that creates the execution result. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Geschützte Methode PostDrop Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Geschützte Methode PostMove Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Geschützte Methode PostRename Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Öffentliche Methode Refresh Refreshes the object's properties by reading them from the server. (Geerbt von SfcInstance.)
Öffentliche Methode Rename(String) Renames the ServerGroup object by using the specified name.
Öffentliche Methode Rename(SfcKey) Renames the ServerGroup object by using the specified name.
Geschützte Methode RenameImpl Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Geschützte Methode ResetKey Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Öffentliche Methode Serialize Serializes the instance to XML. (Geerbt von SfcInstance.)
Öffentliche Methode ToString Returns a string representation of the instance Urn. (Geerbt von SfcInstance.)
Geschützte Methode UpdateUIPropertyState Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Geschützte Methode Validate() () () () Indicates the basic child object's validation. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Öffentliche Methode Validate(String, array<Object> [] () [] []) Validates the ServerGroup object against the specified method and arguments.

Zum Anfang

Ereignisse

  Name Beschreibung
Öffentliches Ereignis DuplicateFound An event raised if a duplicate registered server group is encountered.
Geschütztes Ereignis propertyChanged Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Öffentliches Ereignis PropertyChanged CLS-compliant event for property changes. (Geerbt von SfcInstance.)
Geschütztes Ereignis propertyMetadataChanged Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Öffentliches Ereignis PropertyMetadataChanged CLS-compliant event for property metadata changes. (Geerbt von SfcInstance.)

Zum Anfang

Explizite Schnittstellenimplementierungen

  Name Beschreibung
Explizite SchnittstellenimplementierungPrivate Methode ISfcAlterable. . :: . .ScriptAlter Alters the properties of the base object if it has been changed. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur..
Explizite SchnittstellenimplementierungPrivate Methode ISfcCreatable. . :: . .ScriptCreate Produces the script to create this object to storage in its current state. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur..
Explizite SchnittstellenimplementierungPrivate Methode ISfcDroppable. . :: . .ScriptDrop Produces the script to drop this object from storage. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur..
Explizite SchnittstellenimplementierungPrivate Methode ISfcMovable. . :: . .Move Moves the ServerGroup object under the specified parent object and updates the storage to reflect the move.Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur..
Explizite SchnittstellenimplementierungPrivate Methode ISfcMovable. . :: . .ScriptMove Produces the script to move this object under the specified parent object.Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur..
Explizite SchnittstellenimplementierungPrivate Methode ISfcRenamable. . :: . .ScriptRename Renames the instance of ISfcScript object identified by the key parameter. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur..

Zum Anfang

Hinweise

Der Namespace, die Klasse oder das Element wird nur in der Version 2.0 von Microsoft .NET Framework unterstützt.

Thread Safety

Alle öffentlichen, statischen Elemente dieses Typs (Shared in Microsoft Visual Basic) sind für Vorgänge mit mehreren Threads sicher. Für Instanzelemente kann nicht sichergestellt werden, dass sie für Threads sicher sind.

Threadsicherheit

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