ActivityExecutionContext Class

 
Note: This API is now obsolete.

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

Namespace:   System.Workflow.ComponentModel
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

System.Object
  System.Workflow.ComponentModel.ActivityExecutionContext

[ObsoleteAttribute("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public sealed class ActivityExecutionContext : IServiceProvider, 
	IDisposable

NameDescription
System_CAPS_pubpropertyActivity

Gets the Activity that currently executes within this execution context.

System_CAPS_pubpropertyContextGuid

Gets the ContextID of the associated Activity.

System_CAPS_pubpropertyExecutionContextManager

Gets the ActivityExecutionContextManager associated with this instance.

NameDescription
System_CAPS_pubmethodCancelActivity(Activity)

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.

System_CAPS_pubmethodCloseActivity()

Indicates to the workflow runtime that the currently executing activity should transition to the Closed state.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodExecuteActivity(Activity)

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.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetService(Type)

Returns a service of the specified type.

System_CAPS_pubmethodGetService<T>()

Returns a service provider of the specified Type.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodTrackData(Object)

Invokes the track method for the associated Activity.

System_CAPS_pubmethodTrackData(String, Object)

Invokes the track method for the associated Activity.

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticCurrentExceptionProperty

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.

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIDisposable.Dispose()

Releases all resources used by the ActivityExecutionContext.

System_CAPS_noteNote

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

.NET Framework
Available since 3.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: