MailBee.NET Objects 4.0

CommonEventArgs.State Property

Gets a reference to the object which was supplied by the developer in state parameter of asynchronous methods of the mailer components.

public object State {get;}

Property Value

A reference to the state object, or null (Nothing in Visual Basic) if the current event was generated by a synchronous method.

Remarks

State objects can be used by the developer in order to pass any data to event handlers. MailBee itself just passes the value of state parameter of asynchronous methods to this property, but does not use it in any other way.

See Also

CommonEventArgs Class | MailBee Namespace