NotificationsEventReceiver.OnSending método
Um manipulador antes do evento que ocorre antes do Project Server envia uma notificação de alerta ou um lembrete.
Namespace: Microsoft.Office.Project.Server.Events
Assembly: Microsoft.Office.Project.Server.Events.Receivers (em Microsoft.Office.Project.Server.Events.Receivers.dll)
Sintaxe
'Declaração
Public Overridable Sub OnSending ( _
contextInfo As PSContextInfo, _
e As NotificationsPreSendEventArgs _
)
'Uso
Dim instance As NotificationsEventReceiver
Dim contextInfo As PSContextInfo
Dim e As NotificationsPreSendEventArgs
instance.OnSending(contextInfo, e)
public virtual void OnSending(
PSContextInfo contextInfo,
NotificationsPreSendEventArgs e
)
Parâmetros
contextInfo
Tipo: Microsoft.Office.Project.Server.Library.PSContextInfoAs informações de contexto do Project Server.
e
Tipo: Microsoft.Office.Project.Server.Events.NotificationsPreSendEventArgsOs dados para o evento.
Comentários
Use as propriedades SubjectLine e xmlBody para obter o conteúdo de notificação. Você pode alterar o conteúdo de notificação em um manipulador de eventos OnSending . A classe Notification lista alertas e lembretes.
Para obter informações sobre como criar um manipulador de eventos, consulte How to: Create a Project Server Event Handler and Log an Event. Para obter um exemplo que altera o email usando o evento deSending de Notifications, consulte como: personalizar o email para notificações do servidor de projeto.
Ver também
Referência
NotificationsEventReceiver classe
NotificationsEventReceiver membros
Microsoft.Office.Project.Server.Events namespace
NotificationsEventReceiver.OnSent
Outros recursos
Como: personalizar o email para notificações do servidor de projeto