ServicesExceptionNotHandledEventArgs 类
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
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
- 继承
- 属性
备注
本材料讨论的类型和命名空间已废弃不用。 有关详细信息,请参阅 Windows Workflow Foundation 4.5 中弃用的类型。
当派生自 WorkflowRuntimeService 类的服务遇到无法处理的异常时,它可以调用 RaiseServicesExceptionNotHandledEvent 方法来让工作流运行时引擎引发 WorkflowRuntime.ServicesExceptionNotHandled 事件。 该服务会将工作流实例的 Guid 以及与此事件关联的 Exception 传入其 RaiseServicesExceptionNotHandledEvent 调用中。 工作流运行时引擎在 ServicesExceptionNotHandledEventArgs 中包装这些参数并引发 WorkflowRuntime.ServicesExceptionNotHandled 事件。 从 WorkflowRuntime.ServicesExceptionNotHandled 事件的订户内部,您可以读取 WorkflowInstanceId 属性和 Exception 属性以获取与特定的 WorkflowRuntime.ServicesExceptionNotHandled 事件关联的信息。
Exception |
已过时.
获取此服务未能处理的异常。 |
Workflow |
已过时.
获取与未经处理的异常关联的工作流实例的 Guid。 |
Equals(Object) |
已过时.
确定指定对象是否等于当前对象。 (继承自 Object) |
Get |
已过时.
作为默认哈希函数。 (继承自 Object) |
Get |
已过时.
获取当前实例的 Type。 (继承自 Object) |
Memberwise |
已过时.
创建当前 Object 的浅表副本。 (继承自 Object) |
To |
已过时.
返回表示当前对象的字符串。 (继承自 Object) |
产品 | 版本 (已过时) |
---|---|
.NET Framework | 3.0, 3.5, 4.0 (4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1) |