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
此类型的任何公共静态(Microsoft Visual Basic 中的 Shared)成员在多线程操作中是安全的。不保证所有实例成员都是线程安全的。
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。
.gif)
.gif)
.gif)
.gif)