共用方式為


ServerGroup 類別

注意:此 API 已經過時。

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

繼承階層

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() 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) Initializes a new instance of the ServerGroup object based on the specified server group and with the specified name.

上層

屬性

  名稱 說明
公用屬性 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。)
受保護的方法 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。)
公用方法 GetHashCode (繼承自 Object。)
公用方法 GetSmoObject Gets a RegSvrSmoObject that is specified by a URN. (繼承自 ServerGroupBase。)
公用方法 GetType (繼承自 Object。)
公用方法 Initialize Initializes the object. (繼承自 RegSvrSmoObject。)
受保護的方法 IsObjectInitialized Gets a Boolean value that specifies whether the object was initialized. (繼承自 RegSvrSmoObject。)
公用方法 Refresh Refreshes the properties of the object. (繼承自 RegSvrSmoObject。)
受保護的方法 SetParentImpl Sets a parent. (繼承自 RegSvrSmoObject。)
公用方法 ToString (繼承自 Object。)
公用方法 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 為共用) 成員具備多執行緒作業安全。並非所有的執行個體成員都是安全執行緒。

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。

請參閱

參考

Microsoft.SqlServer.Management.Smo.RegisteredServers 命名空間

其他資源

管理已註冊的伺服器

sp_ActiveDirectory_SCP (Transact-SQL)