ActivityContext 類別

定義

內容類別的基底類別,表示活動的執行環境。The base class for context classes that represent the execution environment of an activity.

public ref class ActivityContext
public class ActivityContext
type ActivityContext = class
Public Class ActivityContext
繼承
ActivityContext
衍生

備註

此類別提供有限的 Windows Workflow Foundation (WF) 執行時間存取,而且是 Windows Workflow Foundation (WF) 提供的所有執行內容的基類。This class provides limited access to the Windows Workflow Foundation (WF) runtime and is the base class for all execution contexts that are provided by Windows Workflow Foundation (WF).

屬性

ActivityInstanceId

取得目前執行中活動執行個體的唯一識別碼。Gets the unique identifier of the currently executing activity instance.

DataContext

取得目前執行中活動的資料內容。Gets the data context of the currently executing activity.

WorkflowInstanceId

取得目前執行中工作流程執行個體的唯一識別碼。Gets the unique identifier of the currently executing workflow instance.

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetExtension<T>()

傳回指定型別的擴充。Returns an extension of the specified type.

GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetLocation<T>(LocationReference)

傳回目前活動內容之指定參考位置的具型別位置。Returns the typed location for the specified referenced location for the current activity context.

GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
GetValue(Argument)

取得指定之 Argument 的值。Gets the value of the specified Argument.

GetValue(RuntimeArgument)

取得指定之 RuntimeArgument 的值。Gets the value of the specified RuntimeArgument.

GetValue<T>(InArgument<T>)

取得指定之 InArgument<T> 的值。Gets the value of the specified InArgument<T>.

GetValue<T>(InOutArgument<T>)

取得指定之 InOutArgument<T> 的值。Gets the value of the specified InOutArgument<T>.

GetValue<T>(LocationReference)

取得位於指定之 LocationReference 的值。Gets the value at the specified LocationReference.

GetValue<T>(OutArgument<T>)

取得指定之 OutArgument<T> 的值。Gets the value of the specified OutArgument<T>.

MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
SetValue(Argument, Object)

將值指派給指定的 ArgumentAssigns a value to the specified Argument.

SetValue<T>(InArgument<T>, T)

將值指派給指定的 InArgument<T>Assigns a value to the specified InArgument<T>.

SetValue<T>(InOutArgument<T>, T)

將值指派給指定的 InOutArgument<T>Assigns a value to the specified InOutArgument<T>.

SetValue<T>(LocationReference, T)

將值指派給指定的 LocationReferenceAssigns a value to the specified LocationReference.

SetValue<T>(OutArgument<T>, T)

將值指派給指定的 OutArgument<T>Assigns a value to the specified OutArgument<T>.

ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於