Classe ServerGroup
Observação: essa API está obsoleta.
O objeto ServerGroup representa um grupo de servidores registrados do Microsoft SQL Server.
Hierarquia de herança
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 (em Microsoft.SqlServer.SmoExtended.dll)
Sintaxe
'Declaração
<ObsoleteAttribute("Instead use namespace Microsoft.SqlServer.Management.RegisteredServers")> _
Public NotInheritable Class ServerGroup _
Inherits ServerGroupBase
'Uso
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
O tipo ServerGroup expõe os membros a seguir.
Construtores
Nome | Descrição | |
---|---|---|
![]() |
ServerGroup() () () () | Inicializa uma nova instância do objeto ServerGroup. |
![]() |
ServerGroup(String) | Inicializa uma nova instância do objeto ServerGroup que tem o nome especificado. |
![]() |
ServerGroup(ServerGroup, String) | Inicializa uma nova instância do objeto ServerGroup com base no grupo de servidores especificado e com o nome especificado. |
Início
Propriedades
Nome | Descrição | |
---|---|---|
![]() |
Description | Obtém ou define a descrição textual do grupo de servidores registrados referenciado. |
![]() |
Name | Gets or sets the name of the object. (Herdado de RegSvrSmoObject.) |
![]() |
Parent | Obtém ou define o objeto ServerGroup que é o pai do objeto ServerGroup referenciado. |
![]() |
Path | Obtém o caminho do grupo de servidores referenciado. |
![]() |
Properties | Gets the properties associated with the object. (Herdado de RegSvrSmoObject.) |
![]() |
RegisteredServers | Represents a collection of RegisteredServer objects. Each RegisteredServer object represents a registered server that is included in the parent server group. (Herdado de ServerGroupBase.) |
![]() |
ServerGroups | Represents a collection of ServerGroup objects. Each ServerGroup object represents a server group that is included in the parent server group. (Herdado de ServerGroupBase.) |
![]() |
ServerType | Obtém o valor do objeto Guid que especifica o tipo de servidor associado ao grupo de servidores. |
![]() |
State | Gets the state of the referenced object. (Herdado de SmoObjectBase.) |
![]() |
Urn | Obtém o valor do objeto Urn que representa o grupo de servidores. (Substitui RegSvrSmoObject. . :: . .Urn.) |
![]() |
UrnSkeleton | Gets the Urn object that represents the object. (Herdado de RegSvrSmoObject.) |
![]() |
UserData | Gets or sets user-defined data associated with the referenced object. (Herdado de SmoObjectBase.) |
Início
Métodos
Nome | Descrição | |
---|---|---|
![]() |
Alter | Updates any ServerGroupBase object property changes on the instance of Microsoft SQL Server. (Herdado de ServerGroupBase.) |
![]() |
CheckObjectState | Checks the state of the object. (Herdado de RegSvrSmoObject.) |
![]() |
ClearCollections | Clears the server group collections. (Herdado de ServerGroupBase.) |
![]() |
Create | Creates a server group on the instance of Microsoft SQL Server as defined by the ServerGroupBase object. (Herdado de ServerGroupBase.) |
![]() |
Drop | Removes the ServerGroupBase from the parent server group. (Herdado de ServerGroupBase.) |
![]() |
Equals | (Herdado de Object.) |
![]() |
Finalize | (Herdado de Object.) |
![]() |
GetHashCode | (Herdado de Object.) |
![]() |
GetSmoObject | Gets a RegSvrSmoObject that is specified by a URN. (Herdado de ServerGroupBase.) |
![]() |
GetType | (Herdado de Object.) |
![]() |
ImplInitialize | Initializes the object. (Herdado de RegSvrSmoObject.) |
![]() |
Initialize | Initializes the object. (Herdado de RegSvrSmoObject.) |
![]() |
IsObjectInitialized | Gets a Boolean value that specifies whether the object was initialized. (Herdado de RegSvrSmoObject.) |
![]() |
MemberwiseClone | (Herdado de Object.) |
![]() |
Refresh | Refreshes the properties of the object. (Herdado de RegSvrSmoObject.) |
![]() |
SetParentImpl | Sets a parent. (Herdado de RegSvrSmoObject.) |
![]() |
ToString | (Herdado de Object.) |
![]() |
UpdateObjectState | Gets the updated object state. (Herdado de RegSvrSmoObject.) |
![]() |
Validate | Validates the state of an object. (Herdado de SmoObjectBase.) |
Início
Comentários
To get or set ServerGroup object properties, users must be a member of the sysadmin fixed server role.
Thread Safety
Qualquer membro público estático (Compartilhado no Microsoft Visual Basic) desse tipo é seguro para operações multi-threaded. Não há garantia de que qualquer membro de instância seja seguro para threads.
Segurança de thread
Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.
Consulte também