ActivityExecutionContext Class

Definition

Caution

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

Represents the execution environment of an Activity. This class cannot be inherited.

public ref class ActivityExecutionContext sealed : IDisposable, IServiceProvider
public sealed class ActivityExecutionContext : IDisposable, IServiceProvider
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public sealed class ActivityExecutionContext : IDisposable, IServiceProvider
type ActivityExecutionContext = class
    interface IServiceProvider
    interface IDisposable
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type ActivityExecutionContext = class
    interface IServiceProvider
    interface IDisposable
Public NotInheritable Class ActivityExecutionContext
Implements IDisposable, IServiceProvider
Inheritance
ActivityExecutionContext
Attributes
Implements

Remarks

Note

This material discusses types and namespaces that are obsolete. For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

Represents the execution environment of an Activity. This class selectively exposes workflow runtime capabilities and services to individual activities. This class cannot be inherited.

For more information, see Understanding the Activity Execution Context.

Fields

Name Description
CurrentExceptionProperty

Represents an exception that has occurred during the execution of the workflow instance. This property has a value only when an activity is in the faulting state.

Properties

Name Description
Activity

Gets the Activity that currently executes within this execution context.

ContextGuid

Gets the ContextID of the associated Activity.

ExecutionContextManager

Gets the ActivityExecutionContextManager associated with this instance.

Methods

Name Description