CommandData Event
Returns the data that accompanies the command.
Syntax
public event OnCommandDataHandler OnCommandData; public delegate void OnCommandDataHandler(object sender, SmtpclientCommandDataEventArgs e); public class SmtpclientCommandDataEventArgs : EventArgs { public string Cmd { get; } public string Data { get; } }
Public Event OnCommandData As OnCommandDataHandler Public Delegate Sub OnCommandDataHandler(sender As Object, e As SmtpclientCommandDataEventArgs) Public Class SmtpclientCommandDataEventArgs Inherits EventArgs Public ReadOnly Property Cmd As String Public ReadOnly Property Data As String End Class
Remarks
Subscribe to this event to access data accompanying the outgoing commands.