Interop 類別

定義

警告

The WF3 Types are deprecated. Instead, please use the new WF4 Types from System.Activities.*

管理工作流程內 Activity 執行的活動。

public ref class Interop sealed : System::Activities::NativeActivity, System::ComponentModel::ICustomTypeDescriptor
public sealed class Interop : System.Activities.NativeActivity, System.ComponentModel.ICustomTypeDescriptor
[System.Obsolete("The WF3 Types are deprecated. Instead, please use the new WF4 Types from System.Activities.*")]
public sealed class Interop : System.Activities.NativeActivity, System.ComponentModel.ICustomTypeDescriptor
type Interop = class
    inherit NativeActivity
    interface ICustomTypeDescriptor
[<System.Obsolete("The WF3 Types are deprecated. Instead, please use the new WF4 Types from System.Activities.*")>]
type Interop = class
    inherit NativeActivity
    interface ICustomTypeDescriptor
Public NotInheritable Class Interop
Inherits NativeActivity
Implements ICustomTypeDescriptor
繼承
屬性
實作

備註

注意

Interop活動不會出現在工作流程設計工具工具箱中,除非工作流程的專案 Target Framework 設定為 .Net Framework 4

警告

由於 Interop 活動可支援的介面型別有限,所以無法直接使用HandleExternalEventActivityCallExternalMethodActivity,但可使用以 [工作流程通訊活動] 工具 (WCA.exe) 所建立的衍生活動。 如需詳細資訊,請參閱Windows Workflow Foundation 工具

建構函式

Interop()

建立 Interop 類別的新執行個體。

屬性

ActivityMetaProperties

名稱/值對的集合,這些名稱/值對會與 Activity 的中繼資料對應,例如活動的 Name 屬性,或 WhileActivity 活動的 Condition 屬性。

ActivityProperties

取得成對名稱/值的集合,這些成對名稱/值會與 Activity 的輸入與輸出屬性對應。

ActivityType

取得或設定 Interop 所包含之活動的活動型別。

CacheId

取得工作流程定義範圍內的唯一快取識別碼。

(繼承來源 Activity)
CanInduceIdle

取得或設定值,這個值指出此活動是否會造成工作流程變為閒置。

(繼承來源 NativeActivity)
Constraints

取得 Constraint 活動的集合,這些活動可以設定為提供 Activity 的驗證。

(繼承來源 Activity)
DisplayName

取得或設定選擇性的易記名稱,這個名稱會用於偵錯、驗證、例外狀況處理及追蹤。

(繼承來源 Activity)
Id

取得工作流程定義範圍內的唯一識別碼。

(繼承來源 Activity)
Implementation

活動的執行邏輯。

(繼承來源 NativeActivity)
ImplementationVersion

取得或設定活動的實作版本。

(繼承來源 NativeActivity)

方法

Abort(NativeActivityAbortContext)

在衍生類別中實作時,會採取動作以回應中止的活動。

(繼承來源 NativeActivity)
CacheMetadata(ActivityMetadata)

未實作。 請改用 CacheMetadata(NativeActivityMetadata) 方法。

(繼承來源 NativeActivity)
CacheMetadata(NativeActivityMetadata)

建立並驗證活動引數、變數、子活動和活動委派的描述。

(繼承來源 NativeActivity)
Cancel(NativeActivityContext)

在衍生類別中實作時,執行邏輯以便在非失誤性的狀況下及早完成活動。

(繼承來源 NativeActivity)
Equals(Object)

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

(繼承來源 Object)
Execute(NativeActivityContext)

在衍生類別中實作時,執行活動的執行邏輯。

(繼承來源 NativeActivity)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
OnCreateDynamicUpdateMap(NativeActivityUpdateMapMetadata, Activity)

建立動態更新的對應時引發事件。

(繼承來源 NativeActivity)
OnCreateDynamicUpdateMap(UpdateMapMetadata, Activity)

建立動態更新的對應時引發事件。

(繼承來源 NativeActivity)
ShouldSerializeDisplayName()

指出是否應序列化 DisplayName 屬性。

(繼承來源 Activity)
ToString()

傳回包含 的 和 的 。

(繼承來源 Activity)
UpdateInstance(NativeActivityUpdateContext)

更新 NativeActivity 的執行個體。

(繼承來源 NativeActivity)

明確介面實作

ICustomTypeDescriptor.GetAttributes()

傳回包含之 Activity 的屬性集合。

ICustomTypeDescriptor.GetClassName()

傳回包含 Activity 之類別的名稱。

ICustomTypeDescriptor.GetComponentName()

傳回包含 Activity 的名稱。

ICustomTypeDescriptor.GetConverter()

傳回包含之 Activity 的關聯型別轉換器。

ICustomTypeDescriptor.GetDefaultEvent()

傳回包含之 Activity 的預設事件。

ICustomTypeDescriptor.GetDefaultProperty()

傳回包含之 Activity 的預設屬性。

ICustomTypeDescriptor.GetEditor(Type)

傳回包含之 Activity 的編輯器。

ICustomTypeDescriptor.GetEvents()

傳回包含之 Activity 的事件集合。

ICustomTypeDescriptor.GetEvents(Attribute[])

使用指定的屬性陣列做為篩選條件,傳回包含之 Activity 的事件集合。

ICustomTypeDescriptor.GetProperties()

傳回包含之 Activity 的屬性集合。

ICustomTypeDescriptor.GetProperties(Attribute[])

使用指定的屬性陣列做為篩選條件,傳回包含之 Activity 的屬性集合。

ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor)

如果屬性描述項沒有擁有者的話,則傳回指定屬性描述項的擁有者或 Interop 活動本身。

適用於