PowerTCP Mail for .NET
OnUserState Method




A UserStateEventArgs object that contains the user information.
Raises the UserState event.
Syntax
Protected Overridable Sub OnUserState( _
   ByVal e As UserStateEventArgs _
) 
Dim instance As ComponentBase
Dim e As UserStateEventArgs
 
instance.OnUserState(e)
protected virtual void OnUserState( 
   UserStateEventArgs e
)
protected: virtual void OnUserState( 
   UserStateEventArgs* e
) 
protected:
virtual void OnUserState( 
   UserStateEventArgs^ e
) 

Parameters

e
A UserStateEventArgs object that contains the user information.
Remarks
If the Synchronizing property is set, this method invokes UserState asynchronously on the UI thread. If the Synchronizing property is null, this method invokes UserState on the executing thread.

OnUserState allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class, but marshaling is not provided.

Note to Inheritors: When overriding OnUserState in a derived class, be sure to call the base class OnUserState method, so that registered delegates receive the event.

See the SynchronizingObject property for information on updating UI controls in your event handler.

See Also

Reference

ComponentBase Class
ComponentBase Members


PowerTCP Mail for .NET Documentation Version 4.3
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic