SubscriptionEventHandlerBaseValidateMessage Method Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

Validates a message before it is sent to a single subscriber.

Namespace: ContentStudio.Document.Subscription.EventHandler
Assembly: CSSubscriptionEventHandler (in CSSubscriptionEventHandler.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

protected virtual bool ValidateMessage(
	SubscriptionInformation subscriber
)

Parameters

subscriber
Type: ContentStudio.Document.Subscription.EventHandlerSubscriptionInformation
The subscriber.

Return Value

Type: Boolean
true if the message is valid; otherwise, false
Remarks

Developers can override this method when there is a need to alter the message content according to the subscriber found or make sure that the message is suited for the subscriber. For example you might want to insert the name of the subscriber at a specfic position in the message.

Note Note
If this method returns false the message will not be sent out to the subscriber.

See Also

Reference