ServerGroup 類別
注意:此 API 已經過時。
ServerGroup 物件代表一組 MicrosoftSQL 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 為共用) 成員具備多執行緒作業安全。不保證所有執行個體成員都是安全執行緒。
執行緒安全性
這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。