メモ: この API は、互換性のために残されています。
ServerGroupCollection クラスは、サーバー グループのすべてのサーバー グループを表す ServerGroup オブジェクトのコレクションを表します。
継承階層
System.Object
Microsoft.SqlServer.Management.Smo.RegisteredServers.RegSvrCollectionBase
Microsoft.SqlServer.Management.Smo.RegisteredServers.ServerGroupCollection
名前空間: Microsoft.SqlServer.Management.Smo.RegisteredServers
アセンブリ: Microsoft.SqlServer.SmoExtended (Microsoft.SqlServer.SmoExtended.dll)
構文
'宣言
<ObsoleteAttribute("Instead use namespace Microsoft.SqlServer.Management.RegisteredServers")> _
Public NotInheritable Class ServerGroupCollection _
Inherits RegSvrCollectionBase _
Implements ICollection, IEnumerable
'使用
Dim instance As ServerGroupCollection
[ObsoleteAttribute("Instead use namespace Microsoft.SqlServer.Management.RegisteredServers")]
public sealed class ServerGroupCollection : RegSvrCollectionBase,
ICollection, IEnumerable
[ObsoleteAttribute(L"Instead use namespace Microsoft.SqlServer.Management.RegisteredServers")]
public ref class ServerGroupCollection sealed : public RegSvrCollectionBase,
ICollection, IEnumerable
[<SealedAttribute>]
[<ObsoleteAttribute("Instead use namespace Microsoft.SqlServer.Management.RegisteredServers")>]
type ServerGroupCollection =
class
inherit RegSvrCollectionBase
interface ICollection
interface IEnumerable
end
public final class ServerGroupCollection extends RegSvrCollectionBase implements ICollection, IEnumerable
ServerGroupCollection 型は、以下のメンバーを公開しています。
プロパティ
| 名前 | 説明 | |
|---|---|---|
![]() |
Count | 参照先のコレクションに含まれるオブジェクトの数を取得します。 |
![]() |
IsSynchronized | コレクションへのアクセスが同期され、スレッド セーフかどうかを示す Boolean 値を取得します。 (RegSvrCollectionBase から継承されています。) |
![]() |
Item[Int32] | コレクション内にある指定したインデックス番号の ServerGroup オブジェクトを取得します。 |
![]() |
Item[String] | コレクション内にある指定した名前の ServerGroup オブジェクトを取得します。 |
![]() |
Parent | ServerGroupCollection オブジェクトの親である ServerGroup オブジェクトを取得します。 |
![]() |
SyncRoot | コレクションへのアクセスの同期に使用できるオブジェクトを取得します。 (RegSvrCollectionBase から継承されています。) |
先頭に戻る
メソッド
| 名前 | 説明 | |
|---|---|---|
![]() |
Add | ServerGroup オブジェクトを ServerGroupCollection コレクションに追加します。 |
![]() |
Contains | 指定した文字列値がコレクション内に存在するかどうかを判別します。 |
![]() |
CopyTo | 1 次元の配列にコレクション オブジェクトをコピーします。その際、指定されたインデックス値の位置からコピーを開始します。 |
![]() |
Equals | (Object から継承されています。) |
![]() |
GetEnumerator | IEnumerator インターフェイスを返します。このインターフェイスを使用すると、コレクション内のオブジェクトを繰り返し処理できます。 |
![]() |
GetHashCode | (Object から継承されています。) |
![]() |
GetType | (Object から継承されています。) |
![]() |
Remove | ServerGroup オブジェクトを ServerGroupCollection オブジェクトから削除します。 |
![]() |
ToString | (Object から継承されています。) |
先頭に戻る
フィールド
| 名前 | 説明 | |
|---|---|---|
![]() |
initialized | コレクションが初期化されていることを示す Boolean 値を取得します。True の場合、コレクションは初期化されます。False の場合、コレクションは初期化されません。 (RegSvrCollectionBase から継承されています。) |
![]() |
innerColl | 登録済みサーバーの基になるコレクションを含んだ並べ替えリストです。 (RegSvrCollectionBase から継承されています。) |
先頭に戻る
説明
ServerGroupCollection オブジェクトは、一連のサーバー グループにアクセスするために使用できます。 Item プロパティを使用して、特定の ServerGroup オブジェクトを取得できます。
使用例
スレッド セーフ
この型の public static (Visual Basic では Shared) のメンバーはすべて、スレッド セーフです。インスタンス メンバーの場合は、スレッド セーフであるとは限りません。
関連項目
参照
Microsoft.SqlServer.Management.Smo.RegisteredServers 名前空間
.gif)
.gif)
.gif)