Share via


MessageInterceptor Constructor (InterceptionAction)

3/29/2010

Initializes an instance of the MessageInterceptor class, using the specified interception action.

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

Syntax

public MessageInterceptor (
    InterceptionAction interceptionAction
)
'Declaration
Public Sub New ( _
    interceptionAction As InterceptionAction _
)

Parameters

  • interceptionAction
    What to do with the intercepted message after successful interception

Remarks

When you use this constructor overload to create a new instance of the MessageInterceptor class, the associated MessageCondition will be null. To work around this, create a new MessageCondition object in a second step. See the following code example for clarification.

Example

MessageInterceptor mi = new MessageInterceptor(InterceptionAction.Notify);
mi.MessageCondition = new MessageCondition();
mi.MessageCondition.ComparisonValue = "review";

See Also

Reference

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