Clase ServerGroup
The ServerGroup class represents a SQL Server server group.
Jerarquía de herencia
System.Object
Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance
Microsoft.SqlServer.Management.RegisteredServers.ServerGroupParent
Microsoft.SqlServer.Management.RegisteredServers.ServerGroup
Espacio de nombres: Microsoft.SqlServer.Management.RegisteredServers
Ensamblado: Microsoft.SqlServer.Management.RegisteredServers (en Microsoft.SqlServer.Management.RegisteredServers.dll)
Sintaxis
'Declaración
Public NotInheritable Class ServerGroup _
Inherits ServerGroupParent _
Implements ISfcValidate, ISfcCreatable, ICreatable, ISfcAlterable, _
IAlterable, ISfcDroppable, IDroppable, ISfcRenamable, IRenamable, _
ISfcMovable
'Uso
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
El tipo ServerGroup expone los siguientes miembros.
Constructores
Nombre | Descripción | |
---|---|---|
![]() |
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. |
Arriba
Propiedades
Nombre | Descripción | |
---|---|---|
![]() |
AbstractIdentityKey | No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda 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. (Se hereda de SfcInstance.) |
![]() |
Name | Gets the name of the server group. |
![]() |
Parent | Gets the parent of the ServerGroup object. |
![]() |
Properties | Returns a collection instance properties. (Se hereda 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. (Se hereda de SfcInstance.) |
![]() |
Urn | Returns the uniform resource name of the SfcInstance object. (Se hereda de SfcInstance.) |
Arriba
Métodos
Nombre | Descripción | |
---|---|---|
![]() |
Alter | Updates any ServerGroup object property changes on the instance of SQL Server. |
![]() |
Create | Creates a registered server on the instance of SQL Server as defined by the ServerGroup object. |
![]() |
CreateIdentityKey | No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcInstance.) |
![]() |
Discover | Discovers the dependency relationship for the server group. (Invalida SfcInstance.Discover(ISfcDependencyDiscoveryObjectSink).) |
![]() |
Drop | Drops the registered server. |
![]() |
Equals | (Se hereda de Object.) |
![]() |
Export | Exports the server group to the specified file and using the specified credential persistence type. |
![]() |
GetChildCollection | No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcInstance.) |
![]() |
GetDescendantRegisteredServers | Returns a list of the registered servers in a server group. |
![]() |
GetDomain | No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcInstance.) |
![]() |
GetHashCode | (Se hereda de Object.) |
![]() ![]() |
GetObjectFactory | Returns the SFC object factory for the ServerGroup object. |
![]() |
GetPropertySet | Returns the set of properties for the SfcInstance object. (Se hereda de SfcInstance.) |
![]() |
GetType | (Se hereda de Object.) |
![]() |
GetTypeMetadataImpl | Indicates the domains that override by returning the right TypeMetadata class directly. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcInstance.) |
![]() |
Import | Imports groups and servers saved to an XML file and adds them as children of the server group. |
![]() |
InitializeUIPropertyState | No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcInstance.) |
![]() |
Move | Specifies the RegisteredServersServerGroup object to move in a new location. |
![]() |
OnPropertyMetadataChanges | Invoked whenever the effective value of any SfcInstance metadata is updated. (Se hereda de SfcInstance.) |
![]() |
OnPropertyValueChanges | Invoked whenever the effective value of any SfcInstance property is updated. (Se hereda de SfcInstance.) |
![]() |
Refresh | Refreshes the object's properties by reading them from the server. (Se hereda de SfcInstance.) |
![]() |
Rename(String) | Renames the ServerGroup object by using the specified name. |
![]() |
Rename(SfcKey) | Renames the ServerGroup object by using the specified name. |
![]() |
ResetKey | No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcInstance.) |
![]() |
Serialize | Serializes the instance to XML. (Se hereda de SfcInstance.) |
![]() |
ToString | Returns a string representation of the instance Urn. (Se hereda de SfcInstance.) |
![]() |
Validate | Validates the ServerGroup object against the specified method and arguments. |
Arriba
Eventos
Nombre | Descripción | |
---|---|---|
![]() |
DuplicateFound | An event raised if a duplicate registered server group is encountered. |
![]() |
PropertyChanged | CLS-compliant event for property changes. (Se hereda de SfcInstance.) |
![]() |
PropertyMetadataChanged | CLS-compliant event for property metadata changes. (Se hereda de SfcInstance.) |
Arriba
Implementaciones de interfaces explícitas
Nombre | Descripción | |
---|---|---|
![]() ![]() |
ISfcAlterable.ScriptAlter | Alters the properties of the base object if it has been changed. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server.. |
![]() ![]() |
ISfcCreatable.ScriptCreate | Produces the script to create this object to storage in its current state. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server.. |
![]() ![]() |
ISfcDroppable.ScriptDrop | Produces the script to drop this object from storage. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server.. |
![]() ![]() |
ISfcMovable.Move | Moves the ServerGroup object under the specified parent object and updates the storage to reflect the move.No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server.. |
![]() ![]() |
ISfcMovable.ScriptMove | Produces the script to move this object under the specified parent object.No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server.. |
![]() ![]() |
ISfcRenamable.ScriptRename | Renames the instance of ISfcScript object identified by the key parameter. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server.. |
Arriba
Comentarios
Este espacio de nombres, clase o miembro solamente se admite en la versión 2.0 de Microsoft .NET Framework.
Thread Safety
Todos los miembros estáticos (compartidos en Microsoft Visual Basic) públicos de este tipo son seguros para operaciones multiproceso. No se garantiza que los miembros de instancia sean seguros para subprocesos.
Seguridad para subprocesos
Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.
Vea también
Referencia
Espacio de nombres Microsoft.SqlServer.Management.RegisteredServers