This topic has not yet been rated - Rate this topic

ActivityExecutionContext Class

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

System.Object
  System.Workflow.ComponentModel.ActivityExecutionContext

Namespace:  System.Workflow.ComponentModel
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)
public sealed class ActivityExecutionContext : IServiceProvider, 
	IDisposable

The ActivityExecutionContext type exposes the following members.

  Name Description
Public property Activity Gets the Activity that currently executes within this execution context.
Public property ContextGuid Gets the ContextID of the associated Activity.
Public property ExecutionContextManager Gets the ActivityExecutionContextManager associated with this instance.
Top
  Name Description
Public method CancelActivity Called by a composite activity to schedule the cancellation of a child activity. The workflow runtime disallows cancellation of a child activity that is not in the Executing state.
Public method CloseActivity Indicates to the workflow runtime that the currently executing activity should transition to the Closed state.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method ExecuteActivity Called by a composite activity to schedule the execution of a child activity. The workflow runtime disallows execution of a child activity that is not in the initialized state.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetService(Type) Returns a service of the specified type.
Public method GetService<T>() Returns a service provider of the specified Type.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TrackData(Object) Invokes the track method for the associated Activity.
Public method TrackData(String, Object) Invokes the track method for the associated Activity.
Top
  Name Description
Public field Static member 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.
Top
  Name Description
Explicit interface implemetation Private method IDisposable.Dispose Releases all resources used by the ActivityExecutionContext.
Top

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, seeUnderstanding the Activity Execution Context.

.NET Framework

Supported in: 4, 3.5, 3.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ