ActivityBind 類別

定義

警告

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

將活動的屬性綁定到屬性、欄位、索引器、方法、事件或其他活動的屬性。 此類別無法獲得繼承。

public ref class ActivityBind sealed : System::Workflow::ComponentModel::Serialization::MarkupExtension
[System.ComponentModel.Browsable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Workflow.ComponentModel.Design.ActivityBindTypeConverter))]
[System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.ComponentModel.Compiler.ActivityBindValidator))]
public sealed class ActivityBind : System.Workflow.ComponentModel.Serialization.MarkupExtension
[System.ComponentModel.Browsable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Workflow.ComponentModel.Design.ActivityBindTypeConverter))]
[System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.ComponentModel.Compiler.ActivityBindValidator))]
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public sealed class ActivityBind : System.Workflow.ComponentModel.Serialization.MarkupExtension
[<System.ComponentModel.Browsable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.Workflow.ComponentModel.Design.ActivityBindTypeConverter))>]
[<System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.ComponentModel.Compiler.ActivityBindValidator))>]
type ActivityBind = class
    inherit MarkupExtension
[<System.ComponentModel.Browsable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.Workflow.ComponentModel.Design.ActivityBindTypeConverter))>]
[<System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.ComponentModel.Compiler.ActivityBindValidator))>]
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type ActivityBind = class
    inherit MarkupExtension
Public NotInheritable Class ActivityBind
Inherits MarkupExtension
繼承
ActivityBind
屬性

備註

Note

此數據會討論已過時的類型和命名空間。 欲了解更多資訊,請參閱 Windows Workflow Foundation 4.5 中的 Deprecated Types。

ActivityBind 允許資料在工作流程中從一個活動流向另一個活動。 ActivityBind 是一種宣告式的方式,將原本必須用程式碼完成的事,因此是大多數完全以 XAML 標記撰寫的工作流程中的關鍵元素。

ActivityBind 代表以 Activity 成員為目標的結合表達式。 目標活動成員可以是屬性、事件或欄位。 Activity屬性或方法可以用ActivityBind來綁定到另一個Activity成員。

例如,如果 activity1 的 property1 設為某個值,而 activity2 的 property1 設 ActivityBind 為 Name=“activity1” 和 Path=“property1”,那麼在執行時,activity2.property1 的值會從 activity1.property1 取得。

建構函式

名稱 Description
ActivityBind()
已淘汰.

初始化 ActivityBind 類別的新執行個體。

ActivityBind(String, String)
已淘汰.

初始化一個帶有 ActivityBind 參數name的類別新實例path

ActivityBind(String)
已淘汰.

初始化一個新的類別實例 ActivityBind ,並以參數 name

屬性

名稱 Description
Name
已淘汰.

會取得或設定指向Activity的名稱ActivityBind

Path
已淘汰.

取得或設定目標活動成員的路徑。 該值可用點符號表示巢狀值的路徑。 例如,路徑「A.B.C」表示 是 ActivityBind 指向名為「C」的欄位或性質,該欄位是欄位 'B' 的成員,而 B 又是欄位 'A',A' 是目標活動的成員。

UserData
已淘汰.

取得 IDictionary 與此實例相關的用戶資料。

方法

名稱 Description
Equals(Object)
已淘汰.

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()
已淘汰.

做為預設哈希函式。

(繼承來源 Object)
GetRuntimeValue(Activity, Type)
已淘汰.

得到 Object 表示此 ActivityBind值的執行時間值。

GetRuntimeValue(Activity)
已淘汰.

得到 Object 表示此 ActivityBind值的執行時間值。

GetType()
已淘汰.

取得目前實例的 Type

(繼承來源 Object)
MemberwiseClone()
已淘汰.

建立目前 Object的淺層複本。

(繼承來源 Object)
ProvideValue(IServiceProvider)
已淘汰.

回傳此類別的當前實例。

SetRuntimeValue(Activity, Object)
已淘汰.

設定執行時間值。

ToString()
已淘汰.

計算並回傳 和 Name 屬性字串的組合Path

適用於