ServicesExceptionNotHandledEventArgs 類別

定義

警告

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

提供 ServicesExceptionNotHandled 事件的資料。

public ref class ServicesExceptionNotHandledEventArgs sealed : EventArgs
public sealed class ServicesExceptionNotHandledEventArgs : EventArgs
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public sealed class ServicesExceptionNotHandledEventArgs : EventArgs
type ServicesExceptionNotHandledEventArgs = class
    inherit EventArgs
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type ServicesExceptionNotHandledEventArgs = class
    inherit EventArgs
Public NotInheritable Class ServicesExceptionNotHandledEventArgs
Inherits EventArgs
繼承
ServicesExceptionNotHandledEventArgs
屬性

備註

注意

此資料討論已被汰換的類型及命名空間。 如需詳細資訊,請參閱 Windows Workflow Foundation 4.5 中即將淘汰的類型

衍生自 WorkflowRuntimeService 類別的服務遇到無法處理的例外狀況時,它可以呼叫 RaiseServicesExceptionNotHandledEvent 方法,以告知工作流程執行階段引擎引發 WorkflowRuntime.ServicesExceptionNotHandled 事件。 服務會傳遞工作流程執行個體的 Guid,以及在服務對 Exception 的呼叫中與此事件關聯的 RaiseServicesExceptionNotHandledEvent。 工作流程執行階段引擎會在 ServicesExceptionNotHandledEventArgs 中封裝這些參數並引發 WorkflowRuntime.ServicesExceptionNotHandled 事件。 從 WorkflowRuntime.ServicesExceptionNotHandled 事件的訂閱者內,您可以讀取 WorkflowInstanceId 屬性和 Exception 屬性,以取得與特定 WorkflowRuntime.ServicesExceptionNotHandled 事件關聯的資訊。

屬性

Exception
已淘汰.

取得服務無法處理的例外狀況。

WorkflowInstanceId
已淘汰.

取得與未處理的例外狀況關聯之工作流程執行個體的 Guid

方法

Equals(Object)
已淘汰.

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()
已淘汰.

做為預設雜湊函式。

(繼承來源 Object)
GetType()
已淘汰.

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()
已淘汰.

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()
已淘汰.

傳回代表目前物件的字串。

(繼承來源 Object)

適用於