TrackingWorkflowExceptionEventArgs 클래스

정의

주의

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
상속
TrackingWorkflowExceptionEventArgs
특성

예제

다음 코드 예제에서는 WriteExceptionEventArgs를 캡처하는 TrackingWorkflowExceptionEventArgs라는 메서드를 보여 줍니다. 이 코드에서는 Exception 속성이 null (Visual Basic의 경우 Nothing)인지 여부를 확인합니다.

그렇지 않으면 코드에서는 Exception 속성과 연결된 메시지를 콘솔에 씁니다. 또한 이 코드에서는 OriginalActivityPath 속성의 값을 문자열로 변환하고 콘솔에 씁니다.

이 코드 예제는 Program.cs 파일에 있는 EventArgs Tracking SDK 샘플의 일부입니다. 자세한 내용은 EventArgs Tracking 샘플합니다.

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

설명

참고

이 자료에서는 더 이상 사용되지 않는 형식과 네임스페이스에 대해 설명합니다. 자세한 내용은 Deprecated Types in Windows Workflow Foundation 4.5(Windows Workflow Foundation 4.5에서 사용되지 않는 형식)를 참조하세요.

워크플로 인스턴스를 실행하는 동안 예외가 발생하고 워크플로 인스턴스와 연결된 TrackingProfileWorkflowTrackPoint에 대해 구성된 TrackingWorkflowEvent.Exception를 포함하는 경우 워크플로 추적 인프라는 EventArgs를 추적 서비스로 보내는 TrackingWorkflowExceptionEventArgsWorkflowTrackingRecord로 설정합니다.

참고

TrackingWorkflowExceptionEventArgs는 런타임 추적 서비스가 WorkflowTrackingRecord에 정보를 포함하여 전달하는 용도로만 사용됩니다.

속성

ContextGuid
사용되지 않음.

연결된 활동의 컨텍스트 ID를 가져옵니다.

CurrentActivityPath
사용되지 않음.

현재 예외를 throw하는 활동의 QualifiedName을 가져옵니다.

Exception
사용되지 않음.

워크플로 인스턴스가 throw하는 Exception을 가져옵니다.

OriginalActivityPath
사용되지 않음.

원래 예외를 throw한 활동의 QualifiedName을 가져옵니다.

ParentContextGuid
사용되지 않음.

부모 활동의 컨텍스트 ID를 가져옵니다.

메서드

Equals(Object)
사용되지 않음.

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
GetHashCode()
사용되지 않음.

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetType()
사용되지 않음.

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
MemberwiseClone()
사용되지 않음.

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()
사용되지 않음.

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

적용 대상

추가 정보