System.Workflow.ComponentModel.Activity
Represents the fundamental building block of workflows. Activity is the base class for all activities. |
Public Constructors
Activity | Overloaded. Initializes a new instance of the Activity class. |
Public Fields
ActivityContextGuidProperty | The DependencyProperty representing the Guid of the Activity. |
CancelingEvent | Represents the DependencyProperty which targets the Canceling event. |
ClosedEvent | Represents the DependencyProperty which targets the Closed event. |
CompensatingEvent | Represents the DependencyProperty which targets the Compensating event. |
ExecutingEvent | Represents the DependencyProperty which targets the Executing event, which occurs when the activity is executed. |
FaultingEvent | The DependencyProperty representing the Faulting event. |
StatusChangedEvent | Represents the DependencyProperty which targets the StatusChanged event. |
XClassProperty | |
XCodeProperty |
Public Properties
Description | Gets or sets the user defined description of the Activity. |
Enabled | Gets or sets a value that indicates whether this instance is enabled for execution, and validation. |
ExecutionResult | Gets the ActivityExecutionResult of the last attempt to run this instance |
ExecutionStatus | Gets the current ActivityExecutionStatus of this instance. |
Name | Gets or sets the name of this instance. |
Parent | Gets the Activity that encloses this Activity. |
QualifiedName | Gets the qualified name of the instance. |
Site | Gets or sets a reference to the Site component of the DependencyObject.(Inherited from DependencyObject.) |
UserData | Gets an IDictionary which associates custom data with this class.(Inherited from DependencyObject.) |
Protected Properties
DesignMode | Gets the value that indicates whether this instance is in design or run-time mode.(Inherited from DependencyObject.) |
ParentDependencyObject | Gets the parent DependencyObject in the DependencyObject graph.(Inherited from DependencyObject.) |
WorkflowInstanceId | Gets the Guid associated with the instance. |
Public Methods
AddHandler | Adds a handler for an event of a DependencyObject. (Inherited from DependencyObject.) |
Clone | Creates a deep copy of the Activity. |
GetActivityByName | Overloaded. Returns the instance of the Activity whose name is requested from the set of all activities running under the root activity of this instance; that is within the workflow. |
GetBinding | Provides access to the Bind associated with the specific DependencyProperty. (Inherited from DependencyObject.) |
GetValue | Provides access to the value of the designated DependencyProperty. (Inherited from DependencyObject.) |
GetValueBase | Provides access to the bound object of a DependencyProperty and bypassing the GetValue override. (Inherited from DependencyObject.) |
InvalidateProperty | Broadcasts that a DependencyProperty is no longervalid. (Inherited from DependencyObject.) |
IsBindingSet | Indicates whether the value of a DependencyProperty is set as Binding. See SetBinding. (Inherited from DependencyObject.) |
Load (静态) | Overloaded. Loads an instance of an Activity from a Stream. |
MetaEquals | Determines whether the metaproperties of this DependencyObject equals the metaproperties of the parameterized DependencyObject. (Inherited from DependencyObject.) |
RaiseEvent | Raises an Event associated with the specified dependency property. |
RaiseGenericEvent | Raises the event associated with the referenced DependencyProperty. |
RegisterForStatusChange | Registers the specified DependencyProperty for the status change event. |
RemoveHandler | Removes an EventHandler from an associated DependencyProperty. (Inherited from DependencyObject.) |
RemoveProperty | Removes a DependencyProperty from the DependencyObject. (Inherited from DependencyObject.) |
Save | Overloaded. Saves a copy of the Activity to a Stream. |
SetBinding | Sets the ActivityBind for the specified DependencyProperty. (Inherited from DependencyObject.) |
SetValue | Sets the value of the DependencyProperty to the object. (Inherited from DependencyObject.) |
SetValueBase | Sets the value of the DependencyProperty to the specified Object, bypassing the SetValue. (Inherited from DependencyObject.) |
ToString | Overridden. Provides a string representing this instance. |
UnregisterForStatusChange | Un-registers the specified DependencyProperty for the status change event. |
Protected Methods
Cancel | Method used to cancel execution of an activity. |
Execute | Runs the activity synchronously. |
Finalize | Provided as an override to System.Object.Finalize to clean up any unmanaged resources deterministically. (Inherited from DependencyObject.) |
GetBoundValue | Retrieves the Object which is the subject of a ActvityBind. (Inherited from DependencyObject.) |
GetDynamicActivities | Provides an array of activity instances which are dynamically created at run-time |
GetInvocationList | Gets an array that contains the delegates for the specified DependencyProperty. (Inherited from DependencyObject.) |
HandleFault | Called when an exception is raised within the context of the execution of this instance. |
Initialize | When overridden in a derived class, provides initialization by a service provider for the activity. |
Invoke | Overloaded. |
OnClose | Runs when the activity is closed. |
OnInitializeForRuntime | (Inherited from DependencyObject.) |
OnPropertyInvalidated | Runs when a DependencyProperty is no longer valid. (Inherited from DependencyObject.) |
SetBoundValue | Sets the value of the target ActivityBind. (Inherited from DependencyObject.) |
SetReadOnlyPropertyValue | Sets the value of a DependencyProperty which is read-only. (Inherited from DependencyObject.) |
TrackData | Overloaded. Informs the run-time tracking infrastructure of pending tracking information. |
Public Events
Canceling | Occurs when the activity execution is cancelled. |
Closed | Occurs when an Activity has completed execution. |
Compensating | Occurs when running a compensation method on the Activity. |
Executing | Occurs when the Activity is run. |
Faulting | Occurs when an exception is raised during the running of the instance. |
StatusChanged | Occurs when the Status of a running Activity changes. |
CompositeActivity
System.Workflow.ComponentModel.CompositeActivity
Derives from Activity and contains a list of child activities. A CompositeActivity is responsible for managing the execution of its child activities. The following tables list the members exposed by the CompositeActivity type. Derives from Activity and contains a list of child activities. A CompositeActivity is responsible for managing the execution of its child activities. |
Public Constructors
CompositeActivity | Overloaded. Initializes a new instance of the CompositeActivity class. |
Public Properties
Activities | Gets the object representing the collection, ActivityCollection, of all child activities. |
EnabledActivities | Gets the Read-Only Collection which represents the subset of Activities which are enabled. |
Protected Properties
CanModifyActivities | Gets or sets a value which controls whether the individual activities within Activities can be modified. |
Protected Methods
ApplyWorkflowChanges | Applies the WorkflowChanges manifest in the parameter to this instance. |
Initialize | Overridden. Initializes all appropriate child activities using the WorkflowCoreRuntime of this instance and the specified IServiceProvider. |
OnActivityChangeAdd | Calls the specified ActivityExecutionContextInitializeinitialize method using the specified Activity. |
OnActivityChangeRemove | Called when an activity is removed. |
OnListChanged | Performs additional processing when the Activities changes. |
OnListChanging | Event which occurs before a change being made to the underlying Activities. |
OnWorkflowChangesCompleted | Called after changes have been made to the collection Activities of this instance. |