Класс ServerGroup
Примечание. Этот API-интерфейс устарел.
Объект ServerGroup представляет группу зарегистрированных серверов Microsoft SQL Server.
Иерархия наследования
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
Пространство имен: Microsoft.SqlServer.Management.Smo.RegisteredServers
Сборка: Microsoft.SqlServer.SmoExtended (в Microsoft.SqlServer.SmoExtended.dll)
Синтаксис
'Декларация
<ObsoleteAttribute("Instead use namespace Microsoft.SqlServer.Management.RegisteredServers")> _
Public NotInheritable Class ServerGroup _
Inherits ServerGroupBase
'Применение
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
Тип ServerGroup обеспечивает доступ к следующим элементам.
Конструкторы
| Имя | Описание | |
|---|---|---|
![]() |
ServerGroup() () () () | Инициализирует новый экземпляр объекта ServerGroup. |
![]() |
ServerGroup(String) | Инициализирует новый экземпляр объекта ServerGroup с указанным именем. |
![]() |
ServerGroup(ServerGroup, String) | Инициализирует новый экземпляр объекта ServerGroup на основе заданной группы серверов и заданного имени. |
В начало
Свойства
| Имя | Описание | |
|---|---|---|
![]() |
Description | Возвращает или задает текстовое описание указанной группы зарегистрированных серверов. |
![]() |
Name | Gets or sets the name of the object. (Производный от RegSvrSmoObject.) |
![]() |
Parent | Возвращает или задает объект ServerGroup, который является родительским для объекта ServerGroup, указанного в ссылке. |
![]() |
Path | Возвращает путь для группы серверов, указанной в ссылке. |
![]() |
Properties | Gets the properties associated with the object. (Производный от RegSvrSmoObject.) |
![]() |
RegisteredServers | Represents a collection of RegisteredServer objects. Each RegisteredServer object represents a registered server that is included in the parent server group. (Производный от ServerGroupBase.) |
![]() |
ServerGroups | Represents a collection of ServerGroup objects. Each ServerGroup object represents a server group that is included in the parent server group. (Производный от ServerGroupBase.) |
![]() |
ServerType | Возвращает значение объекта Guid, указывающее тип сервера, связанного с этой группой серверов. |
![]() |
State | Gets the state of the referenced object. (Производный от SmoObjectBase.) |
![]() |
Urn | Возвращает значение объекта Urn, которое представляет группу серверов. (Переопределяет RegSvrSmoObject. . :: . .Urn.) |
![]() |
UrnSkeleton | Gets the Urn object that represents the object. (Производный от RegSvrSmoObject.) |
![]() |
UserData | Gets or sets user-defined data associated with the referenced object. (Производный от SmoObjectBase.) |
В начало
Методы
| Имя | Описание | |
|---|---|---|
![]() |
Alter | Updates any ServerGroupBase object property changes on the instance of Microsoft SQL Server. (Производный от ServerGroupBase.) |
![]() |
CheckObjectState | Checks the state of the object. (Производный от RegSvrSmoObject.) |
![]() |
ClearCollections | Clears the server group collections. (Производный от ServerGroupBase.) |
![]() |
Create | Creates a server group on the instance of Microsoft SQL Server as defined by the ServerGroupBase object. (Производный от ServerGroupBase.) |
![]() |
Drop | Removes the ServerGroupBase from the parent server group. (Производный от ServerGroupBase.) |
![]() |
Equals | (Производный от Object.) |
![]() |
Finalize | (Производный от Object.) |
![]() |
GetHashCode | (Производный от Object.) |
![]() |
GetSmoObject | Gets a RegSvrSmoObject that is specified by a URN. (Производный от ServerGroupBase.) |
![]() |
GetType | (Производный от Object.) |
![]() |
ImplInitialize | Initializes the object. (Производный от RegSvrSmoObject.) |
![]() |
Initialize | Initializes the object. (Производный от RegSvrSmoObject.) |
![]() |
IsObjectInitialized | Gets a Boolean value that specifies whether the object was initialized. (Производный от RegSvrSmoObject.) |
![]() |
MemberwiseClone | (Производный от Object.) |
![]() |
Refresh | Refreshes the properties of the object. (Производный от RegSvrSmoObject.) |
![]() |
SetParentImpl | Sets a parent. (Производный от RegSvrSmoObject.) |
![]() |
ToString | (Производный от Object.) |
![]() |
UpdateObjectState | Gets the updated object state. (Производный от RegSvrSmoObject.) |
![]() |
Validate | Validates the state of an object. (Производный от SmoObjectBase.) |
В начало
Замечания
To get or set ServerGroup object properties, users must be a member of the sysadmin fixed server role.
Thread Safety
Все общие статические члены этого типа (Shared в Microsoft Visual Basic) можно использовать в многопоточных операциях. Безопасная многопоточная работа с членами экземпляров типа не гарантируется.
Безопасность многопоточности
Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.
См. также
.gif)
.gif)
.gif)
.gif)