SearchResultCollection 클래스

정의

SearchResultCollection 클래스에는 SearchResult 쿼리 중에 Active Directory 계층이 반환한 DirectorySearcher 인스턴스가 포함됩니다.

public ref class SearchResultCollection : MarshalByRefObject, IDisposable, System::Collections::ICollection
public class SearchResultCollection : MarshalByRefObject, IDisposable, System.Collections.ICollection
type SearchResultCollection = class
    inherit MarshalByRefObject
    interface ICollection
    interface IEnumerable
    interface IDisposable
Public Class SearchResultCollection
Inherits MarshalByRefObject
Implements ICollection, IDisposable
상속
SearchResultCollection
구현

설명

구현 제한으로 인해 클래스는 SearchResultCollection 가비지 수집 시 관리되지 않는 리소스를 모두 해제할 수 없습니다. 메모리 누수 방지를 위해 개체가 Dispose 더 이상 필요하지 않은 경우 메서드를 SearchResultCollection 호출해야 합니다.

속성

Name Description
Count

이 컬렉션의 SearchResult 개체 수를 가져옵니다.

Handle

실제 검색을 수행하는 메서드에서 IDirectorySearch::ExecuteSearch 반환되는 핸들을 가져옵니다. 자세한 내용은 IDirectorySearch::ExecuteSearch 문서를 참조하세요.

Item[Int32]

이 컬렉션의 SearchResult 지정된 인덱스 위치에 있는 개체를 가져옵니다.

PropertiesLoaded

검색이 DirectorySearcher 실행되기 전에 지정된 속성을 가져옵니다.

메서드

Name Description
Contains(SearchResult)

지정된 SearchResult 개체가 이 컬렉션에 있는지 여부를 확인합니다.

CopyTo(SearchResult[], Int32)

대상 배열의 지정된 인덱스에서 시작하여 이 컬렉션의 모든 SearchResult 개체를 특정 배열에 복사합니다.

CreateObjRef(Type)

원격 개체와 통신하는 데 사용되는 프록시를 생성하는 데 필요한 모든 관련 정보를 포함하는 개체를 만듭니다.

(다음에서 상속됨 MarshalByRefObject)
Dispose()

개체에서 사용하는 모든 리소스를 SearchResultCollection 해제합니다.

Dispose(Boolean)

개체에서 사용하는 관리되지 않는 리소스를 SearchResultCollection 해제하고 관리되는 리소스를 선택적으로 해제합니다.

Equals(Object)

지정된 개체가 현재 개체와 같은지 여부를 확인합니다.

(다음에서 상속됨 Object)
Finalize()

메서드를 재정의 Finalize() 합니다.

GetEnumerator()

이 컬렉션을 반복하는 데 사용할 수 있는 열거자를 반환합니다.

GetHashCode()

기본 해시 함수로 사용됩니다.

(다음에서 상속됨 Object)
GetLifetimeService()
사용되지 않음.

이 인스턴스의 수명 정책을 제어하는 현재 수명 서비스 개체를 검색합니다.

(다음에서 상속됨 MarshalByRefObject)
GetType()

현재 인스턴스의 Type 가져옵니다.

(다음에서 상속됨 Object)
IndexOf(SearchResult)

이 컬렉션에서 지정한 SearchResult 개체가 처음 나타나는 인덱스 값을 반환합니다.

InitializeLifetimeService()
사용되지 않음.

이 인스턴스의 수명 정책을 제어하는 수명 서비스 개체를 가져옵니다.

(다음에서 상속됨 MarshalByRefObject)
MemberwiseClone()

현재 Object단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
MemberwiseClone(Boolean)

현재 MarshalByRefObject 개체의 단순 복사본을 만듭니다.

(다음에서 상속됨 MarshalByRefObject)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

명시적 인터페이스 구현

Name Description
ICollection.CopyTo(Array, Int32)

특정 ICollection 인덱스에서 시작하여 Array 요소를 Array복사합니다.

ICollection.IsSynchronized

ICollection 대한 액세스가 동기화되는지 여부를 나타내는 값을 가져옵니다(스레드로부터 안전).

ICollection.SyncRoot

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

확장명 메서드

Name Description
AsParallel(IEnumerable)

쿼리의 병렬 처리를 사용하도록 설정합니다.

AsQueryable(IEnumerable)

IEnumerable IQueryable변환합니다.

Cast<TResult>(IEnumerable)

IEnumerable 요소를 지정된 형식으로 캐스팅합니다.

OfType<TResult>(IEnumerable)

지정된 형식에 따라 IEnumerable 요소를 필터링합니다.

적용 대상