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 | |
---|---|---|
ServerGroup() () () () | Initializes a new instance of the ServerGroup class. | |
ServerGroup(String) | Initializes a new instance of the ServerGroup class that has the specified name. | |
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 | |
---|---|---|
AbstractIdentityKey | Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.) | |
Description | Gets the name of the server group. | |
DisplayName | Gets the display name of the server group. | |
ID | Gets the ID value that uniquely identifies the server group. | |
IdentityKey | Gets the key value that uniquely identifies the server group. | |
IsDropped | Gets the Boolean value that specifies whether the server group has been dropped or not. | |
IsLocal | Gets the Boolean value that specifies whether the server group local. | |
IsSystemServerGroup | Gets the Boolean value that specifies whether the server group is a system object. | |
Metadata | Returns metadata about the instance and its domain. (hérité de SfcInstance.) | |
Name | Gets the name of the server group. | |
Parent | Gets the parent of the ServerGroup object. | |
Properties | Returns a collection instance properties. (hérité de SfcInstance.) | |
PropertyStorageProvider | Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.) | |
RegisteredServers | Represents a collection of RegisteredServers objects. Each RegisteredServers object represents a registered server. | |
ServerGroups | Represents a collection of ServerGroup objects. Each ServerGroup object represents a server group. | |
ServerType | Gets or the type of server that is associated with the server group. | |
State | Returns the state of the SfcInstance object. (hérité de SfcInstance.) | |
Urn | Returns the uniform resource name of the SfcInstance object. (hérité de SfcInstance.) |
Haut de la page
Méthodes
Nom | Description | |
---|---|---|
Alter | Updates any ServerGroup object property changes on the instance of SQL Server. | |
AlterImpl | Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.) | |
CheckObjectCreated | Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.) | |
CheckObjectState | Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.) | |
Create | Creates a registered server on the instance of SQL Server as defined by the ServerGroup object. | |
CreateIdentityKey | Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.) | |
CreateImpl | Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.) | |
Discover | Discovers the dependency relationship for the server group. (remplace SfcInstance. . :: . .Discover(ISfcDependencyDiscoveryObjectSink).) | |
Drop | Drops the registered server. | |
DropImpl | Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.) | |
Equals | (hérité de Object.) | |
Export | Exports the server group to the specified file and using the specified credential persistence type. | |
Finalize | (hérité de Object.) | |
GetChildCollection | Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.) | |
GetDescendantRegisteredServers | Returns a list of the registered servers in a server group. | |
GetDomain | Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.) | |
GetHashCode | (hérité de Object.) | |
GetObjectFactory | Returns the SFC object factory for the ServerGroup object. | |
GetPropertySet | Returns the set of properties for the SfcInstance object. (hérité de SfcInstance.) | |
GetType | (hérité de Object.) | |
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.) | |
Import | Imports groups and servers saved to an XML file and adds them as children of the server group. | |
InitializeUIPropertyState | Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.) | |
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.) | |
MarkRootAsConnected | Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.) | |
MemberwiseClone | (hérité de Object.) | |
Move | Specifies the RegisteredServersServerGroup object to move in a new location. | |
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.) | |
OnPropertyMetadataChanges | Invoked whenever the effective value of any SfcInstance metadata is updated. (hérité de SfcInstance.) | |
OnPropertyValueChanges | Invoked whenever the effective value of any SfcInstance property is updated. (hérité de SfcInstance.) | |
PostAlter | Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.) | |
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.) | |
PostDrop | Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.) | |
PostMove | Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.) | |
PostRename | Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.) | |
Refresh | Refreshes the object's properties by reading them from the server. (hérité de SfcInstance.) | |
Rename(String) | Renames the ServerGroup object by using the specified name. | |
Rename(SfcKey) | Renames the ServerGroup object by using the specified name. | |
RenameImpl | Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.) | |
ResetKey | Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.) | |
Serialize | Serializes the instance to XML. (hérité de SfcInstance.) | |
ToString | Returns a string representation of the instance Urn. (hérité de SfcInstance.) | |
UpdateUIPropertyState | Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.) | |
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.) | |
Validate(String, array<Object> [] () [] []) | Validates the ServerGroup object against the specified method and arguments. |
Haut de la page
Événements
Nom | Description | |
---|---|---|
DuplicateFound | An event raised if a duplicate registered server group is encountered. | |
propertyChanged | Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.) | |
PropertyChanged | CLS-compliant event for property changes. (hérité de SfcInstance.) | |
propertyMetadataChanged | Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.) | |
PropertyMetadataChanged | CLS-compliant event for property metadata changes. (hérité de SfcInstance.) |
Haut de la page
Implémentations d'interfaces explicites
Nom | Description | |
---|---|---|
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.. | |
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.. | |
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.. | |
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.. | |
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.. | |
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.