In The Hand - .NET Components for Mobility
MessageInterceptor Class
NamespacesInTheHand.WindowsMobile.PocketOutlook.MessageInterceptionMessageInterceptor
Raises an event when an arriving SMS message satisfies the interception rule condition.
Declaration Syntax
C#Visual Basic
public sealed class MessageInterceptor : IDisposable, 
	IApplicationLauncher
Public NotInheritable Class MessageInterceptor _
	Implements IDisposable, IApplicationLauncher
Members
All MembersConstructorsMethodsPropertiesEvents



IconMemberDescription
MessageInterceptor()()()
Initializes an instance of the MessageInterceptor class.

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

MessageInterceptor(String)
Initializes an instance of the MessageInterceptor class, using the specified applicationLaunchId.

MessageInterceptor(InterceptionAction, Boolean)
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.

MessageInterceptor(String, Boolean)
Initializes an instance of the MessageInterceptor class, using the specified applicationLaunchId, and a value indicating whether to use the application's form thread to process events.

ApplicationArguments
Gets any optional parameters to pass to the intercepting application.

ApplicationLaunchId
Gets the identifier of the intercepting application.

ApplicationToLaunch
Gets the name of the intercepting application.

DisableApplicationLauncher()()()
Disables an already enabled application from launching if an arriving SMS message satisfies the interception rule condition. If your application is still running and consuming the MessageReceived event, then you will still receive the event.

Dispose()()()
Disposes a MessageInterceptor.

EnableApplicationLauncher(String)
Enables your current application to be launched if it is not already running when a MessageReceived event is raised, using the string equivalent of the application identifier.

EnableApplicationLauncher(String, String)
Enables the application specified in applicationFileName to be launched when a MessageReceived event is raised, using the string equivalent of the application identifier and its file name.

EnableApplicationLauncher(String, String, String)
Enables the application specified in applicationFileName to be launched when a MessageReceived event is raised, using the string equivalent of the application identifier, its file name, and any agruments it might need.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()()
Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
GetType()()()
Gets the Type of the current instance.
(Inherited from Object.)
InterceptionAction
Gets or sets the action performed on the intercepted SMS message.

IsApplicationLauncherEnabled(String)
Get a value indicating if a message interceptor application launcher with the given identifier has already been enabled.

MemberwiseClone()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
MessageCondition
Gets or sets a value indicating the condition an arriving SMS message must satisfy to be intercepted.

MessageReceived
Occurs when an arriving SMS message satisfies the interception rule condition.

ToString()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Remarks
When defining an instance of MessageInterceptor that is going to handle the MessageReceived event, make sure that the instance is defined globally in the class where the event will be handled. If it is defined in a method, it will be up for garbage collection after it goes out of scope.
Inheritance Hierarchy
Object
MessageInterceptor

Assembly: InTheHand.WindowsMobile (Module: InTheHand.WindowsMobile) Version: 3.2.0.0