NotificationsEventReceiver.OnSending 方法
Project Server 傳送通知或提醒通知發生前的事件處理常式。
命名空間: Microsoft.Office.Project.Server.Events
組件: Microsoft.Office.Project.Server.Events.Receivers (在 Microsoft.Office.Project.Server.Events.Receivers.dll 中)
語法
'宣告
Public Overridable Sub OnSending ( _
contextInfo As PSContextInfo, _
e As NotificationsPreSendEventArgs _
)
'用途
Dim instance As NotificationsEventReceiver
Dim contextInfo As PSContextInfo
Dim e As NotificationsPreSendEventArgs
instance.OnSending(contextInfo, e)
public virtual void OnSending(
PSContextInfo contextInfo,
NotificationsPreSendEventArgs e
)
參數
contextInfo
類型:Microsoft.Office.Project.Server.Library.PSContextInfoProject Server 的內容資訊。
備註
使用SubjectLine和xmlBody屬性來取得通知內容。您可以變更通知內容OnSending事件處理常式中。Notification類別列出警告與提醒。
如需建立事件處理常式的資訊,請參閱 < How to: Create a Project Server Event Handler and Log an Event。如需變更電子郵件使用NotificationsSending事件的範例,請參閱 < How to: 自訂用於 Project Server 通知的電子郵件。
請參閱
參照
Microsoft.Office.Project.Server.Events 命名空間
NotificationsEventReceiver.OnSent