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 객체를 반환할 수 있습니다.

필드

Name Description
initialized
사용되지 않음.

집합이 초기화되었음을 나타내는 값을 받습니다 Boolean .

참이면 수집이 초기화됩니다.

False 경우, 컬렉션은 초기화되지 않습니다.

(다음에서 상속됨 RegSvrCollectionBase)
innerColl
사용되지 않음.

등록된 서버의 기본 집합을 포함하는 정렬 목록입니다.

(다음에서 상속됨 RegSvrCollectionBase)

속성

Name Description
Count
사용되지 않음.

참조된 컬렉션의 객체 수를 얻습니다.

IsSynchronized
사용되지 않음.

컬렉션 접근이 동기화되어 스레드 안전한지 여부를 나타내는 값을 받습니다 Boolean .

(다음에서 상속됨 RegSvrCollectionBase)
Item[Int32]
사용되지 않음.

인덱스 번호로 컬렉션 내 객체를 ServerGroup 얻습니다.

Item[String]
사용되지 않음.

컬렉션 내에서 이름으로 객체를 ServerGroup 얻습니다.

Parent
사용되지 않음.

객체의 부모 ServerGroup 가 되는 객체를 ServerGroupCollection 가져옵니다.

SyncRoot
사용되지 않음.

컬렉션에 대한 액세스를 동기화하는 데 사용할 수 있는 개체를 가져옵니다.

(다음에서 상속됨 RegSvrCollectionBase)

메서드

Name Description
Add(ServerGroup)
사용되지 않음.

컬렉션에 ServerGroup 객체를 추가합니다ServerGroupCollection.

Contains(String)
사용되지 않음.

지정된 문자열 값이 컬렉션 내에 존재하는지 결정합니다.

CopyTo(Array, Int32)
사용되지 않음.

지정된 인덱스 값에서 시작하는 1차원 배열로 컬렉션 객체를 복사합니다.

GetEnumerator()
사용되지 않음.

컬렉션 내 객체를 반복 탐색할 수 있는 인터페이스를 반환 IEnumerator 합니다.

Remove(String)
사용되지 않음.

ServerGroup 개체에서 개체를 ServerGroupCollection 제거합니다.

적용 대상