SearchResult Event

Fired for every entry returned from a search operation.

Syntax

public event OnSearchResultHandler OnSearchResult;

public delegate void OnSearchResultHandler(object sender, LdapSearchResultEventArgs e);

public class LdapSearchResultEventArgs : EventArgs {
  public int MessageId { get; }
  public string DN { get; }
}
Public Event OnSearchResult As OnSearchResultHandler

Public Delegate Sub OnSearchResultHandler(sender As Object, e As LdapSearchResultEventArgs)

Public Class LdapSearchResultEventArgs Inherits EventArgs
  Public ReadOnly Property MessageId As Integer
  Public ReadOnly Property DN As String
End Class

Remarks

MessageId identifies the corresponding search request. DN contains the Distinguished Name of the entry, while the attribute type and value provided in the Attributes collection, show the list of retrieved attributes for the entry.

Every search operation results in a sequence of 0 or more SearchResult events, a sequence of 0 or more SearchResultReference events, followed by a SearchComplete event.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 .NET Edition - Version 20.0 [Build 8307]