Result Event
Fired for every server response, except search responses.
Syntax
public event OnResultHandler OnResult; public delegate void OnResultHandler(object sender, LdapResultEventArgs e); public class LdapResultEventArgs : EventArgs { public int MessageId { get; } public string DN { get; } public int ResultCode { get; } public string ResultDescription { get; } }
Public Event OnResult As OnResultHandler Public Delegate Sub OnResultHandler(sender As Object, e As LdapResultEventArgs) Public Class LdapResultEventArgs Inherits EventArgs Public ReadOnly Property MessageId As Integer Public ReadOnly Property DN As String Public ReadOnly Property ResultCode As Integer Public ReadOnly Property ResultDescription As String End Class
Remarks
The MessageId parameter identifies the corresponding request. ResultCode and ResultDescription show whether the operation was successful (on a successful operation, the ResultCode is 0). For a full list of possible result codes, see the ResultCode property.