DirectorySearcher.Asynchronous 속성

정의

검색이 비동기적으로 수행되는지 여부를 나타내는 값을 가져오거나 설정합니다.

public:
 property bool Asynchronous { bool get(); void set(bool value); };
public bool Asynchronous { get; set; }
[System.DirectoryServices.DSDescription("DSAsynchronous")]
[System.Runtime.InteropServices.ComVisible(false)]
public bool Asynchronous { get; set; }
member this.Asynchronous : bool with get, set
[<System.DirectoryServices.DSDescription("DSAsynchronous")>]
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.Asynchronous : bool with get, set
Public Property Asynchronous As Boolean

속성 값

true 검색이 비동기인 경우 false 그렇지 않으면.

특성

예제

다음 C# 예제에서는 비동기 검색을 만드는 방법을 보여줍니다.

using System.DirectoryServices;
...
// Bind to the users container.
DirectoryEntry entry = new DirectoryEntry("LDAP://CN=users,DC=fabrikam,DC=com");
// Create a DirectorySearcher object.
DirectorySearcher src = new DirectorySearcher(entry);
//Set the Asynchronous property to true.
src.Asynchronous = true;
//Use the FindAll method to get search results.
SearchResultCollection res = src.FindAll();

설명

비동기 검색은 추가 결과를 동시에 검색하는 동안 발견된 결과를 표시할 수 있습니다. 이는 목록 상자 채우기와 같은 작업에 유용합니다.

이 속성의 기본 설정은 .입니다 false.

적용 대상