Share via


NotificationsEventReceiver.OnSending - Méthode

Un gestionnaire d'événements avant que cet événement se produit avant que Project Server envoie une notification d'alerte ou un rappel.

Espace de noms :  Microsoft.Office.Project.Server.Events
Assembly :  Microsoft.Office.Project.Server.Events.Receivers (dans Microsoft.Office.Project.Server.Events.Receivers.dll)

Syntaxe

'Déclaration
Public Overridable Sub OnSending ( _
    contextInfo As PSContextInfo, _
    e As NotificationsPreSendEventArgs _
)
'Utilisation
Dim instance As NotificationsEventReceiver
Dim contextInfo As PSContextInfo
Dim e As NotificationsPreSendEventArgs

instance.OnSending(contextInfo, e)
public virtual void OnSending(
    PSContextInfo contextInfo,
    NotificationsPreSendEventArgs e
)

Paramètres

Remarques

Utilisez les propriétés SubjectLine et xmlBody pour obtenir le contenu de la notification. Vous pouvez modifier le contenu de notification dans un gestionnaire d'événements OnSending . La classe Notification répertorie les alertes et rappels.

Pour plus d'informations sur la création d'un gestionnaire d'événements, voir How to: Create a Project Server Event Handler and Log an Event. Pour obtenir un exemple qui modifie le courrier électronique à l'aide de l'événementSendingNotifications, reportez-vous à la section Comment : personnaliser la messagerie pour les Notifications Project Server.

Voir aussi

Référence

NotificationsEventReceiver classe

NotificationsEventReceiver - Membres

Microsoft.Office.Project.Server.Events - Espace de noms

NotificationsEventReceiver.OnSent

Autres ressources

Comment : personnaliser la messagerie pour les Notifications Project Server