NotificationsEventReceiver.OnSending メソッド
プレイベント ハンドラー プロジェクト サーバーが警告またはアラーム通知を送信する前に発生します。
名前空間: 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イベントを使用して電子メールを変更するには、以下を参照してください。方法: のプロジェクト サーバーの通知電子メールのカスタマイズ。
関連項目
参照先
NotificationsEventReceiver クラス
NotificationsEventReceiver メンバー
Microsoft.Office.Project.Server.Events 名前空間
NotificationsEventReceiver.OnSent