Export (0) Print
Expand All

ActivityExecutionContext Class

Note: This API is now obsolete.

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)

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

The ActivityExecutionContext type exposes the following members.

  NameDescription
Public propertyActivityGets the Activity that currently executes within this execution context.
Public propertyContextGuidGets the ContextID of the associated Activity.
Public propertyExecutionContextManagerGets the ActivityExecutionContextManager associated with this instance.
Top

  NameDescription
Public methodCancelActivityCalled 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 methodCloseActivityIndicates to the workflow runtime that the currently executing activity should transition to the Closed state.
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodExecuteActivityCalled 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.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetService(Type)Returns a service of the specified type.
Public methodGetService<T>()Returns a service provider of the specified Type.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodTrackData(Object)Invokes the track method for the associated Activity.
Public methodTrackData(String, Object)Invokes the track method for the associated Activity.
Top

  NameDescription
Public fieldStatic memberCurrentExceptionPropertyRepresents 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

  NameDescription
Explicit interface implemetationPrivate methodIDisposable.DisposeReleases all resources used by the ActivityExecutionContext.
Top

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

.NET Framework

Supported in: 4, 3.5, 3.0
Obsolete (compiler warning) in 4.5.2
Obsolete (compiler warning) in 4.5.1
Obsolete (compiler warning) in 4.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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.
Show:
© 2014 Microsoft