Activity Activity Activity Activity Class

定義

用來從既有 Activity 物件建立複合活動的抽象基底類別。An abstract base class used to create composite activities from pre-existing Activity objects.

public ref class Activity abstract
[System.Windows.Markup.ContentProperty("Implementation")]
public abstract class Activity
type Activity = class
Public MustInherit Class Activity
繼承
ActivityActivityActivityActivity
衍生
屬性

範例

下列範例將示範 Activity 衍生類別的簡單實作。The following example shows a simple implementation of an Activity derived class.

備註

Activity 是活動型別階層中的基底類別。Activity is the base class in the activity type hierarchy. 所有其他活動型別 (例如 CodeActivityNativeActivityAsyncCodeActivityDynamicActivityActivityWithResult) 會衍生自這個類別。All other activity types such as CodeActivity, NativeActivity, AsyncCodeActivity, DynamicActivity, and ActivityWithResult derive from this class.

建構函式

Activity() Activity() Activity() Activity()

初始化 Activity 類別的新執行個體。Initializes a new instance of the Activity class.

屬性

CacheId CacheId CacheId CacheId

取得工作流程定義範圍內的唯一快取識別碼。Gets the identifier of the cache that is unique within the scope of the workflow definition.

Constraints Constraints Constraints Constraints

取得 Constraint 活動的集合,這些活動可以設定為提供 Activity 的驗證。Gets a collection of Constraint activities that can be configured to provide validation for the Activity.

DisplayName DisplayName DisplayName DisplayName

取得或設定選擇性的易記名稱,這個名稱會用於偵錯、驗證、例外狀況處理及追蹤。Gets or sets an optional friendly name that is used for debugging, validation, exception handling, and tracking.

Id Id Id Id

取得工作流程定義範圍內的唯一識別碼。Gets an identifier that is unique in the scope of the workflow definition.

Implementation Implementation Implementation Implementation

取得或設定委派,這個委派會傳回包含執行邏輯的 ActivityGets or sets the delegate that returns an Activity that contains the execution logic.

ImplementationVersion ImplementationVersion ImplementationVersion ImplementationVersion

取得或設定所使用實作的版本。Gets or sets the version of the implementation used.

方法

CacheMetadata(ActivityMetadata) CacheMetadata(ActivityMetadata) CacheMetadata(ActivityMetadata) CacheMetadata(ActivityMetadata)

建立並驗證活動引數、變數、子活動和活動委派的描述。Creates and validates a description of the activity's arguments, variables, child activities, and activity delegates.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

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

(Inherited from Object)
GetType() GetType() GetType() GetType()

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

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
OnCreateDynamicUpdateMap(UpdateMapMetadata, Activity) OnCreateDynamicUpdateMap(UpdateMapMetadata, Activity) OnCreateDynamicUpdateMap(UpdateMapMetadata, Activity) OnCreateDynamicUpdateMap(UpdateMapMetadata, Activity)

建立動態更新對應時引發事件。Raises an event when creating dynamic update map.

ShouldSerializeDisplayName() ShouldSerializeDisplayName() ShouldSerializeDisplayName() ShouldSerializeDisplayName()

指出是否應序列化 DisplayName 屬性。Indicates whether the DisplayName property should be serialized.

ToString() ToString() ToString() ToString()

傳回包含 StringIdDisplayNameActivityReturns a String that contains the Id and DisplayName of the Activity.

適用於