ServerGroupCollection 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
Instead use namespace Microsoft.SqlServer.Management.RegisteredServers
這個 ServerGroupCollection 類別代表一組 ServerGroup 物件,代表該伺服器群組上所有的伺服器群組。
public ref class ServerGroupCollection sealed : Microsoft::SqlServer::Management::Smo::RegisteredServers::RegSvrCollectionBase, System::Collections::ICollection
[System.Obsolete("Instead use namespace Microsoft.SqlServer.Management.RegisteredServers")]
public sealed class ServerGroupCollection : Microsoft.SqlServer.Management.Smo.RegisteredServers.RegSvrCollectionBase, System.Collections.ICollection
[<System.Obsolete("Instead use namespace Microsoft.SqlServer.Management.RegisteredServers")>]
type ServerGroupCollection = class
inherit RegSvrCollectionBase
interface ICollection
interface IEnumerable
Public NotInheritable Class ServerGroupCollection
Inherits RegSvrCollectionBase
Implements ICollection
- 繼承
- 屬性
- 實作
範例
備註
ServerGroupCollection物件可以用來存取一組伺服器群組。 你可以用這個 Item[] 屬性來回傳特定的 ServerGroup 物件。
欄位
| 名稱 | Description |
|---|---|
| initialized |
已淘汰.
會得到 Boolean 一個表示集合已被初始化的值。 若為真,則被初始化收集。 若為 False,則該集合未被初始化。 (繼承來源 RegSvrCollectionBase) |
| innerColl |
已淘汰.
排序清單包含底層註冊伺服器集合。 (繼承來源 RegSvrCollectionBase) |
屬性
| 名稱 | Description |
|---|---|
| Count |
已淘汰.
取得參考集合中的物件數量。 |
| IsSynchronized |
已淘汰.
會獲得 Boolean 一個值,表示對集合的存取是否同步,因此是否執行緒安全。 (繼承來源 RegSvrCollectionBase) |
| Item[Int32] |
已淘汰.
透過索引號取得 ServerGroup 集合中的物件。 |
| Item[String] |
已淘汰.
透過名稱取得 ServerGroup 集合中的物件。 |
| Parent |
已淘汰.
取得 ServerGroup 該物件的父 ServerGroupCollection 物件。 |
| SyncRoot |
已淘汰.
取得對象,這個物件可用來同步存取集合。 (繼承來源 RegSvrCollectionBase) |
方法
| 名稱 | Description |
|---|---|
| Add(ServerGroup) |
已淘汰.
新增一個 ServerGroup 物件到集合中 ServerGroupCollection 。 |
| Contains(String) |
已淘汰.
判斷指定的字串值是否存在於集合中。 |
| CopyTo(Array, Int32) |
已淘汰.
將集合物件複製到從指定索引值開始的一維陣列。 |
| GetEnumerator() |
已淘汰.
回傳一個 IEnumerator 介面,讓你可以遍歷集合中的物件。 |
| Remove(String) |
已淘汰.
從物件中移除一個 ServerGroup 物件 ServerGroupCollection 。 |