MailEventNotificationInfo.EventsDiscardedDueToMessageLimit Property
Assembly: System.Web (in system.web.dll)
The message limit specifies the maximum number of messages that are sent during a single notification, which is the maximum number of messages per notification multiplied by the maximum number of events allowed per message. These values are specified by the maxEventsPerMessage and the maxMessagesPerNotification attributes in the appropriate provider sub-section of the healthMonitoring section in a configuration file.
A notification occurs when the event-buffering system sends out messages for accumulated events. This may occur because the buffer has accumulated the maximum allowed number of events, because the time interval between sending events has expired, or because the health-monitoring system has requested a buffer flush. The entire event buffer is sent to the recipients in as few messages as possible, based on the maxEventsPerMessage value. Buffer settings are specified in the bufferModes subsection of the healthMonitoring section in a configuration file.
The following code example shows how to use a MailEventNotificationInfo object in an e-mail template for a TemplatedMailWebEventProvider object.
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.