Share via


MessageInterceptor Constructor (InterceptionAction, Boolean)

3/29/2010

Initializes an instance of the MessageInterceptor class, using the specified interception action, and a value indicating whether to use the application's form thread to process events.

Namespace: Microsoft.WindowsMobile.PocketOutlook.MessageInterception
Assembly: Microsoft.WindowsMobile.PocketOutlook (in microsoft.windowsmobile.pocketoutlook.dll)

Syntax

public MessageInterceptor (
    InterceptionAction interceptionAction,
    bool useFormThread
)
'Declaration
Public Sub New ( _
    interceptionAction As InterceptionAction, _
    useFormThread As Boolean _
)

Parameters

  • interceptionAction
    What to do with the intercepted message after successful interception
  • useFormThread
    Use the application's Form thread to process events. You need to use the application's Form thread to be able to manipulate UI from within an event. If your application does not contain a form, then this should be set to false.

See Also

Reference

MessageInterceptor Class
MessageInterceptor Members
Microsoft.WindowsMobile.PocketOutlook.MessageInterception Namespace