TrackingWorkflowExceptionEventArgs クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
注意事項
The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*
ワークフロー インスタンスの実行中に発生する例外に関連したデータを格納します。
public ref class TrackingWorkflowExceptionEventArgs : EventArgs
[System.Serializable]
public class TrackingWorkflowExceptionEventArgs : EventArgs
[System.Serializable]
[System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")]
public class TrackingWorkflowExceptionEventArgs : EventArgs
[<System.Serializable>]
type TrackingWorkflowExceptionEventArgs = class
inherit EventArgs
[<System.Serializable>]
[<System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")>]
type TrackingWorkflowExceptionEventArgs = class
inherit EventArgs
Public Class TrackingWorkflowExceptionEventArgs
Inherits EventArgs
- 継承
- 属性
例
次のコード例は、WriteExceptionEventArgs を取得する TrackingWorkflowExceptionEventArgs という名前のメソッドを示しています。 このコードは、Exception プロパティが null (Visual Basic の場合は Nothing) かどうかを確認します。
そうでない場合は、Exception プロパティに関連付けられているメッセージをコンソールに書き込みます。 さらに、コードでは OriginalActivityPath プロパティの値を文字列に変換して、それをコンソールに書き出します。
このコード例は、Program.cs ファイルに含まれている EventArgs 追跡 SDK サンプルの一部です。 詳細については、「 EventArgs Tracking Sample」を参照してください。
static void WriteExceptionEventArgs(string eventDescription, TrackingWorkflowExceptionEventArgs exceptionEventArgs, DateTime eventDataTime)
{
Console.WriteLine("\nException Event Arguments Read From Tracking Database:\n");
Console.WriteLine("EventDataTime: " + eventDataTime.ToString());
Console.WriteLine("EventDescription: " + eventDescription);
if (null != exceptionEventArgs.Exception)
{
Console.WriteLine("ExceptionEventArgs Exception Message: " + exceptionEventArgs.Exception.Message.ToString());
}
Console.WriteLine("ExceptionEventArgs Original Activity Path: " + exceptionEventArgs.OriginalActivityPath.ToString());
}
Shared Sub WriteExceptionEventArgs(ByVal eventDescription As String, ByVal exceptionEventArgs As TrackingWorkflowExceptionEventArgs, ByVal eventDataTime As DateTime)
Console.WriteLine(vbCrLf + "Exception Event Arguments Read From Tracking Database:")
Console.WriteLine("EventDataTime: " + eventDataTime.ToString(CultureInfo.CurrentCulture))
Console.WriteLine("EventDescription: " + eventDescription)
If exceptionEventArgs.Exception IsNot Nothing Then
Console.WriteLine("ExceptionEventArgs Exception Message: " + exceptionEventArgs.Exception.Message.ToString())
End If
Console.WriteLine("ExceptionEventArgs Original Activity Path: " + exceptionEventArgs.OriginalActivityPath.ToString())
End Sub
注釈
注意
ここでは、廃止された型と名前空間について説明します。 詳細については、「.NET 4.5 での Windows Workflow Foundation の新機能」を参照してください。
ワークフロー インスタンスの実行中に例外が発生し、ワークフロー インスタンスに関連した TrackingProfile の中に、WorkflowTrackPoint 用に構成された TrackingWorkflowEvent.Exception が含まれる場合、ワークフロー追跡インフラストラクチャは追跡サービスに送られる EventArgs 内の TrackingWorkflowExceptionEventArgs を WorkflowTrackingRecord に設定します。
注意
TrackingWorkflowExceptionEventArgs は、ランタイム追跡サービスが WorkflowTrackingRecord で情報を渡す場合にのみ使用されます。
プロパティ
| ContextGuid |
古い.
関連付けられたアクティビティのコンテキスト ID を取得します。 |
| CurrentActivityPath |
古い.
例外を現在スローしているアクティビティの QualifiedName を取得します。 |
| Exception |
古い.
ワークフロー インスタンスによってスローされる Exception を取得します。 |
| OriginalActivityPath |
古い.
最初に例外をスローしたアクティビティの QualifiedName を取得します。 |
| ParentContextGuid |
古い.
親アクティビティのコンテキスト ID を取得します。 |
メソッド
| Equals(Object) |
古い.
指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。 (継承元 Object) |
| GetHashCode() |
古い.
既定のハッシュ関数として機能します。 (継承元 Object) |
| GetType() |
古い.
現在のインスタンスの Type を取得します。 (継承元 Object) |
| MemberwiseClone() |
古い.
現在の Object の簡易コピーを作成します。 (継承元 Object) |
| ToString() |
古い.
現在のオブジェクトを表す文字列を返します。 (継承元 Object) |