Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
3/29/2010

Raises an event when an arriving SMS message satisfies the interception rule condition.

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

Syntax

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.

Copy Code
public class InterceptorClass
{
	MessageInterceptor interceptor; // defined globally to class
	private void Form1_Load(object sender, EventArgs e)
	{
		// MessageInterceptor interceptor;  // This instance will
go out of scope if defined here

		interceptor = new MessageInterceptor(ruleName);
		interceptor.MessageReceived += new
MessageInterceptorEventHandler(interceptor_MessageReceived);
}
}

Inheritance Hierarchy

System.Object
   Microsoft.WindowsMobile.PocketOutlook.MessageInterception.MessageInterceptor

Thread Safety

Any public static ( Sharedin Visual Basic) members of this type are thread-safe. Any instance members are not guaranteed to be thread-safe.

See Also

500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@systemmanager.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.