ServerGroup 类

注意:此 API 现在已过时。

The ServerGroup object represents a group of Microsoft SQL Server registered servers.

命名空间:  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() () () () Initializes a new instance of the ServerGroup object.
公共方法 ServerGroup(String) Initializes a new instance of the ServerGroup object that has the specified name.
公共方法 ServerGroup(ServerGroup, String)

页首

属性

  名称 说明
公共属性 Description Gets or sets the textual description of the referenced group of registered servers.
公共属性 Name Gets or sets the name of the object. (从 RegSvrSmoObject 继承。)
公共属性 Parent Gets or sets the ServerGroup object that is the parent of the referenced ServerGroup object.
公共属性 Path Gets the path of the referenced server group.
公共属性 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 Gets the Guid object value that specifies the type of server associated with the server group.
公共属性 State Gets the state of the referenced object. (从 SmoObjectBase 继承。)
公共属性 Urn Gets the Urn object value that represents the server group. (覆盖 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 (从 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 (从 RegSvrSmoObject 继承。)
公共方法 Initialize (从 RegSvrSmoObject 继承。)
受保护方法 IsObjectInitialized (从 RegSvrSmoObject 继承。)
受保护方法 MemberwiseClone (从 Object 继承。)
公共方法 Refresh (从 RegSvrSmoObject 继承。)
受保护方法 SetParentImpl (从 RegSvrSmoObject 继承。)
公共方法 ToString (从 Object 继承。)
受保护方法 UpdateObjectState (从 RegSvrSmoObject 继承。)
公共方法 Validate (从 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) 成员都是线程安全的。不保证所有实例成员都是线程安全的。