NativeActivityContext Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The execution context for a NativeActivity.
public ref class NativeActivityContext : System::Activities::ActivityContext
public class NativeActivityContext : System.Activities.ActivityContext
type NativeActivityContext = class
inherit ActivityContext
Public Class NativeActivityContext
Inherits ActivityContext
- Inheritance
- Derived
Remarks
A NativeActivity is provided access to the advanced capabilities of the WF runtime via NativeActivityContext, which is passed as a parameter to the activity's Execute method.
Properties
ActivityInstanceId |
Gets the unique identifier of the currently executing activity instance. (Inherited from ActivityContext) |
DataContext |
Gets the data context of the currently executing activity. (Inherited from ActivityContext) |
DefaultBookmarkScope |
Gets the bookmark scope associated with the root of the workflow. |
IsCancellationRequested |
Gets or sets a value that indicates whether the currently executing NativeActivity instance is to be canceled. |
Properties |
Gets an object that handles properties for execution of the current NativeActivityContext. |
WorkflowInstanceId |
Gets the unique identifier of the currently executing workflow instance. (Inherited from ActivityContext) |
Methods
Abort() |
Aborts the current workflow instance during runtime. |
Abort(Exception) |
Aborts the current workflow instance during runtime for the specified reason. |
AbortChildInstance(ActivityInstance) |
Aborts the specified instance of a NativeActivity child activity. |
AbortChildInstance(ActivityInstance, Exception) |
Aborts the specified instance of a NativeActivity child activity for the specified reason. |
CancelChild(ActivityInstance) |
Cancels the specified child activity instance. |
CancelChildren() |
Causes an early completion of all the child activities of an executing NativeActivity. |
CreateBookmark() |
Creates a point at which a NativeActivity can passively wait to be resumed. |
CreateBookmark(BookmarkCallback) |
Creates the point at which a NativeActivity can passively wait to be resumed and schedules the specified method to execute when notification of the resume operation completes. |
CreateBookmark(BookmarkCallback, BookmarkOptions) |
Creates the point at which a NativeActivity can passively wait to be resumed, with the specified method to execute when notification of the resume operation completes and with the specified option that governs how the bookmark is used during the execution of the current NativeActivity. |
CreateBookmark(String) |
Creates the point, with the specified name, at which a NativeActivity can passively wait to be resumed. |
CreateBookmark(String, BookmarkCallback) |
Creates the point at which a NativeActivity can passively wait to be resumed, with the specified name and with the specified method to execute when notification of the resume operation completes. |
CreateBookmark(String, BookmarkCallback, BookmarkOptions) |
Creates the point at which a NativeActivity can passively wait to be resumed with the specified name, the specified method to execute when notification of the resume operation completes, and the specified option that governs how the bookmark is used during the execution of the current NativeActivity. |
CreateBookmark(String, BookmarkCallback, BookmarkScope) |
Creates the point at which a NativeActivity can passively wait to be resumed with the specified name, the specified method to execute when notification of the resume operation completes, and the specified scope of the bookmark. |
CreateBookmark(String, BookmarkCallback, BookmarkScope, BookmarkOptions) |
Creates the point at which a NativeActivity can passively wait to be resumed with the specified name, the specified method to execute when notification of the resume operation completes, the specified scope of the bookmark, and the specified option that governs how the bookmark is used during the execution of the current NativeActivity. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetChildren() |
Returns a collection of the child activities for the current NativeActivity. |
GetExtension<T>() |
Returns an extension of the specified type. (Inherited from ActivityContext) |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetLocation<T>(LocationReference) |
Returns the typed location for the specified referenced location for the current activity context. (Inherited from ActivityContext) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
GetValue(Argument) |
Gets the value of the specified Argument. (Inherited from ActivityContext) |
GetValue(RuntimeArgument) |
Gets the value of the specified RuntimeArgument. (Inherited from ActivityContext) |
GetValue(Variable) |
Returns the value of the specified variable in the current NativeActivity instance. |
GetValue<T>(InArgument<T>) |
Gets the value of the specified InArgument<T>. (Inherited from ActivityContext) |
GetValue<T>(InOutArgument<T>) |
Gets the value of the specified InOutArgument<T>. (Inherited from ActivityContext) |
GetValue<T>(LocationReference) |
Gets the value at the specified LocationReference. (Inherited from ActivityContext) |
GetValue<T>(OutArgument<T>) |
Gets the value of the specified OutArgument<T>. (Inherited from ActivityContext) |
GetValue<T>(Variable<T>) |
Returns the value of the specified generic variable in the current NativeActivity instance. |
MarkCanceled() |
Designates the currently executing NativeActivity instance as canceled. |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
RemoveAllBookmarks() |
Removes all the bookmarks associated with the currently executing NativeActivity instance. |
RemoveBookmark(Bookmark) |
Removes the specified bookmark from the currently executing NativeActivity instance. |
RemoveBookmark(String) |
Removes the bookmark with the specified name. |
RemoveBookmark(String, BookmarkScope) |
Removes the bookmark with the specified name and the specified bookmark scope. |
ResumeBookmark(Bookmark, Object) |
Resumes the specified bookmark. |
ScheduleAction(ActivityAction, CompletionCallback, FaultCallback) |
Schedules for execution a specified ActivityAction that has no parameters, and that bookmarks the specified callback locations where the parent process resumes upon completion of the ActivityAction. |
ScheduleAction<T>(ActivityAction<T>, T, CompletionCallback, FaultCallback) |
Schedules for execution a specified ActivityAction<T> that has one parameter for an |
ScheduleAction<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14, T15,T16>(ActivityAction<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12, T13,T14,T15,T16>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, CompletionCallback, FaultCallback) |
Schedules for execution a specified ActivityAction<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16> that has sixteen parameters for |
ScheduleAction<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14, T15>(ActivityAction<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13, T14,T15>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, CompletionCallback, FaultCallback) |
Schedules for execution a specified ActivityAction<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15> that has fifteen parameters for |
ScheduleAction<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14>(ActivityAction<T1, T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, CompletionCallback, FaultCallback) |
Schedules for execution a specified ActivityAction<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14> that has fourteen parameters for |
ScheduleAction<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13>(ActivityAction<T1, T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, CompletionCallback, FaultCallback) |
Schedules for execution a specified ActivityAction<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13> that has thirteen parameters for |
ScheduleAction<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12>(ActivityAction<T1, T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, CompletionCallback, FaultCallback) |
Schedules for execution a specified ActivityAction<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12> that has twelve parameters for |
ScheduleAction<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11>(ActivityAction<T1, T2,T3,T4,T5,T6,T7,T8,T9,T10,T11>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, CompletionCallback, FaultCallback) |
Schedules for execution a specified ActivityAction<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11> that has eleven parameters for |
ScheduleAction<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>(ActivityAction<T1, T2,T3,T4,T5,T6,T7,T8,T9,T10>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, CompletionCallback, FaultCallback) |
Schedules for execution a specified ActivityAction<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10> that has ten parameters for |
ScheduleAction<T1,T2,T3,T4,T5,T6,T7,T8,T9>(ActivityAction<T1, T2,T3,T4,T5,T6,T7,T8,T9>, T1, T2, T3, T4, T5, T6, T7, T8, T9, CompletionCallback, FaultCallback) |
Schedules for execution a specified ActivityAction<T1,T2,T3,T4,T5,T6,T7,T8,T9> that has nine parameters for |
ScheduleAction<T1,T2,T3,T4,T5,T6,T7,T8>(ActivityAction<T1,T2,T3,T4,T5,T6,T7,T8>, T1, T2, T3, T4, T5, T6, T7, T8, CompletionCallback, FaultCallback) |
Schedules for execution a specified ActivityAction<T1,T2,T3,T4,T5,T6,T7,T8> that has eight parameters for |
ScheduleAction<T1,T2,T3,T4,T5,T6,T7>(ActivityAction<T1,T2,T3,T4,T5,T6,T7>, T1, T2, T3, T4, T5, T6, T7, CompletionCallback, FaultCallback) |
Schedules for execution a specified ActivityAction<T1,T2,T3,T4,T5,T6,T7> that has seven parameters for |
ScheduleAction<T1,T2,T3,T4,T5,T6>(ActivityAction<T1,T2,T3,T4,T5,T6>, T1, T2, T3, T4, T5, T6, CompletionCallback, FaultCallback) |
Schedules for execution a specified ActivityAction<T1,T2,T3,T4,T5,T6> that has six parameters for |
ScheduleAction<T1,T2,T3,T4,T5>(ActivityAction<T1,T2,T3,T4,T5>, T1, T2, T3, T4, T5, CompletionCallback, FaultCallback) |
Schedules for execution a specified ActivityAction<T1,T2,T3,T4,T5> that has five parameters for |
ScheduleAction<T1,T2,T3,T4>(ActivityAction<T1,T2,T3,T4>, T1, T2, T3, T4, CompletionCallback, FaultCallback) |
Schedules for execution a specified ActivityAction<T1,T2,T3,T4> that has four parameters for |
ScheduleAction<T1,T2,T3>(ActivityAction<T1,T2,T3>, T1, T2, T3, CompletionCallback, FaultCallback) |
Schedules for execution a specified ActivityAction<T1,T2,T3> that has three parameters for |
ScheduleAction<T1,T2>(ActivityAction<T1,T2>, T1, T2, CompletionCallback, FaultCallback) |
Schedules for execution a specified ActivityAction<T1,T2> that has two parameters for |
ScheduleActivity(Activity) |
Schedules the specified NativeActivity child activity for execution. |
ScheduleActivity(Activity, CompletionCallback) |
Schedules the specified NativeActivity child activity for execution using the specified completion callback location where the parent process resumes upon completion of the activity. |
ScheduleActivity(Activity, CompletionCallback, FaultCallback) |
Schedules the specified NativeActivity child activity for execution and bookmarks the specified callback locations where the parent process resumes upon completion of the child activity. |
ScheduleActivity(Activity, FaultCallback) |
Schedules the specified NativeActivity child activity for execution using the specified fault callback location where the parent process resumes when the activity enters the faulted state. |
ScheduleActivity<TResult>(Activity<TResult>, CompletionCallback<TResult>, FaultCallback) |
Schedules the specified NativeActivity child activity for execution, with one parameter for an |
ScheduleDelegate(ActivityDelegate, IDictionary<String,Object>, DelegateCompletionCallback, FaultCallback) |
Pushes the callback method for an activity into the work item pool. |
ScheduleFunc<T,TResult>(ActivityFunc<T,TResult>, T, CompletionCallback<TResult>, FaultCallback) |
Schedules for execution a specified ActivityFunc<T,TResult> that has two parameters for a return value and an |
ScheduleFunc<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15, T16,TResult>(ActivityFunc<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11, T12,T13,T14,T15,T16,TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, CompletionCallback<TResult>, FaultCallback) |
Schedules for execution a specified ActivityFunc<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,TResult> that has seventeen parameters for a return value and |
ScheduleFunc<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15, TResult>(ActivityFunc<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12, T13,T14,T15,TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, CompletionCallback<TResult>, FaultCallback) |
Schedules for execution a specified ActivityFunc<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,TResult> that has sixteen parameters for a return value and |
ScheduleFunc<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,TResult>(ActivityFunc<T1, T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, CompletionCallback<TResult>, FaultCallback) |
Schedules for execution a specified ActivityFunc<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,TResult> that has fifteen parameters for a return value and |
ScheduleFunc<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,TResult>(ActivityFunc<T1, T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, CompletionCallback<TResult>, FaultCallback) |
Schedules for execution a specified ActivityFunc<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,TResult> that has fourteen parameters for a return value and |
ScheduleFunc<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,TResult>(ActivityFunc<T1, T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, CompletionCallback<TResult>, FaultCallback) |
Schedules for execution a specified ActivityFunc<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,TResult> that has thirteen parameters for a return value and |
ScheduleFunc<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,TResult>(ActivityFunc<T1, T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, CompletionCallback<TResult>, FaultCallback) |
Schedules for execution a specified ActivityFunc<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,TResult> that has twelve parameters for a return value and |
ScheduleFunc<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,TResult>(ActivityFunc<T1, T2,T3,T4,T5,T6,T7,T8,T9,T10,TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, CompletionCallback<TResult>, FaultCallback) |
Schedules for execution a specified ActivityFunc<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,TResult> that has eleven parameters for a return value and in arguments, and bookmarks the specified callback locations where the parent process resumes upon completion of the ActivityFunc<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,TResult>. |
ScheduleFunc<T1,T2,T3,T4,T5,T6,T7,T8,T9,TResult>(ActivityFunc<T1, T2,T3,T4,T5,T6,T7,T8,T9,TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9, CompletionCallback<TResult>, FaultCallback) |
Schedules for execution a specified ActivityFunc<T1,T2,T3,T4,T5,T6,T7,T8,T9,TResult> that has ten parameters for a return value and |
ScheduleFunc<T1,T2,T3,T4,T5,T6,T7,T8,TResult>(ActivityFunc<T1, T2,T3,T4,T5,T6,T7,T8,TResult>, T1, T2, T3, T4, T5, T6, T7, T8, CompletionCallback<TResult>, FaultCallback) |
Schedules for execution a specified ActivityFunc<T1,T2,T3,T4,T5,T6,T7,T8,TResult> that has nine parameters for a return value and |
ScheduleFunc<T1,T2,T3,T4,T5,T6,T7,TResult>(ActivityFunc<T1,T2, T3,T4,T5,T6,T7,TResult>, T1, T2, T3, T4, T5, T6, T7, CompletionCallback<TResult>, FaultCallback) |
Schedules for execution a specified ActivityFunc<T1,T2,T3,T4,T5,T6,T7,TResult> that has eight parameters for a return value and |
ScheduleFunc<T1,T2,T3,T4,T5,T6,TResult>(ActivityFunc<T1,T2,T3,T4,T5,T6,TResult>, T1, T2, T3, T4, T5, T6, CompletionCallback<TResult>, FaultCallback) |
Schedules for execution a specified ActivityFunc<T1,T2,T3,T4,T5,T6,TResult> that has seven parameters for a return value and |
ScheduleFunc<T1,T2,T3,T4,T5,TResult>(ActivityFunc<T1,T2,T3,T4,T5,TResult>, T1, T2, T3, T4, T5, CompletionCallback<TResult>, FaultCallback) |
Schedules for execution a specified ActivityFunc<T1,T2,T3,T4,T5,TResult> that has six parameters for a return value and |
ScheduleFunc<T1,T2,T3,T4,TResult>(ActivityFunc<T1,T2,T3,T4,TResult>, T1, T2, T3, T4, CompletionCallback<TResult>, FaultCallback) |
Schedules for execution a specified ActivityFunc<T1,T2,T3,T4,TResult> that has five parameters for a return value and |
ScheduleFunc<T1,T2,T3,TResult>(ActivityFunc<T1,T2,T3,TResult>, T1, T2, T3, CompletionCallback<TResult>, FaultCallback) |
Schedules for execution a specified ActivityFunc<T1,T2,T3,TResult> that has four parameters for a return value and |
ScheduleFunc<T1,T2,TResult>(ActivityFunc<T1,T2,TResult>, T1, T2, CompletionCallback<TResult>, FaultCallback) |
Schedules for execution a specified ActivityFunc<T1,T2,TResult> that has three parameters for a return value and |
ScheduleFunc<TResult>(ActivityFunc<TResult>, CompletionCallback<TResult>, FaultCallback) |
Schedules for execution a specified ActivityFunc<TResult> with one parameter that holds a return value and bookmarks the specified callback locations where the parent process resumes upon completion of the ActivityFunc<TResult>. |
SetValue(Argument, Object) |
Assigns a value to the specified Argument. (Inherited from ActivityContext) |
SetValue(Variable, Object) |
Assigns the specified value object to the specified variable object. |
SetValue<T>(InArgument<T>, T) |
Assigns a value to the specified InArgument<T>. (Inherited from ActivityContext) |
SetValue<T>(InOutArgument<T>, T) |
Assigns a value to the specified InOutArgument<T>. (Inherited from ActivityContext) |
SetValue<T>(LocationReference, T) |
Assigns a value to the specified LocationReference. (Inherited from ActivityContext) |
SetValue<T>(OutArgument<T>, T) |
Assigns a value to the specified OutArgument<T>. (Inherited from ActivityContext) |
SetValue<T>(Variable<T>, T) |
Assigns the specified generic value object to the specified generic variable object. |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
Track(CustomTrackingRecord) |
Adds an activity tracking record to the current workflow instance. |