Click or drag to resize

AppContextDisplayMessage Method (String, String, AlertDelivery, Int32, AlertAttrs)

Registers a message for display on the next page rendering. Note that this page message facility is built on top of the existing Alerts functionality. The message information is stored in the xot_alerts table and delivered asynchronously via an AJAX call upon the next page rendering.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public void DisplayMessage(
	string subject,
	string body,
	AlertDelivery delivery = AlertDelivery.Default,
	int autoCloseSecs = 0,
	AlertAttrs attrs = 
)

Parameters

subject
Type: SystemString
The message subject.
body
Type: SystemString
The message body.
delivery (Optional)
Type: NetQuarry.ServicesAlertDelivery
Optional delivery method. The default of 0 will use the system default delivery.
autoCloseSecs (Optional)
Type: SystemInt32
Optional time, in seconds, after which the alert should close itself. The default of 0 will suppress auto-close. A value of -1 will use the system default auto-close.
attrs (Optional)
Type: NetQuarry.ServicesAlertAttrs
Optional attributes describing the message and/or delivery.

Implements

IAppContextDisplayMessage(String, String, AlertDelivery, Int32, AlertAttrs)
Remarks
Internally a Alert object is used to represent the alert/message. The ApplicationAlert event is fired immediately prior to delivery (Alert(IAppContext, ApplicationAlertArgs)). System configuration properties are available via the ScriptAlert service. Use DisplayMessage(Alert) for registering a message with additional configuration.
See Also