次の方法で共有


ServerGroupCollection クラス

定義

注意事項

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
属性
実装

コレクションの使用

注釈

ServerGroupCollection オブジェクトは、一連のサーバー グループにアクセスするために使用できます。 Item[] プロパティを使用すると、特定の ServerGroup オブジェクトを取得できます。

フィールド

initialized
古い.

コレクションが初期化されていることを示す Boolean 値を取得します。

True の場合、コレクションは初期化されます。

False の場合、コレクションは初期化されません。

(継承元 RegSvrCollectionBase)
innerColl
古い.

登録済みサーバーの基になるコレクションを含んだ並べ替えリストです。

(継承元 RegSvrCollectionBase)

プロパティ

Count
古い.

参照先のコレクションに含まれるオブジェクトの数を取得します。

IsSynchronized
古い.

コレクションへのアクセスが同期され、スレッドセーフかどうかを示す Boolean 値を取得します。

(継承元 RegSvrCollectionBase)
Item[Int32]
古い.

コレクション内の ServerGroup オブジェクトをインデックス番号に基づいて取得します。

Item[String]
古い.

コレクション内にある指定した名前の ServerGroup オブジェクトを取得します。

Parent
古い.

ServerGroup オブジェクトの親である ServerGroupCollection オブジェクトを取得します。

SyncRoot
古い.

コレクションへのアクセスを同期するために使用できるオブジェクトを取得します。

(継承元 RegSvrCollectionBase)

メソッド

Add(ServerGroup)
古い.

ServerGroup オブジェクトを ServerGroupCollection コレクションに追加します。

Contains(String)
古い.

指定した文字列値がコレクション内に存在するかどうかを判別します。

CopyTo(Array, Int32)
古い.

1 次元の配列にコレクション オブジェクトをコピーします。その際、指定されたインデックス値の位置からコピーを開始します。

GetEnumerator()
古い.

コレクション内のオブジェクトを IEnumerator 反復処理できるインターフェイスを返します。

Remove(String)
古い.

ServerGroup オブジェクトを ServerGroupCollection オブジェクトから削除します。

適用対象