通过


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

Warning

由于Interop活动可以支持的接口类型存在限制,HandleExternalEventActivityCallExternalMethodActivity不能直接使用,但可以使用工作流通信活动工具(WCA.exe)创建的派生活动。

构造函数

名称 说明
Interop()
已过时.

创建类的新实例 Interop

属性

名称 说明
ActivityMetaProperties
已过时.

与活动属性(如活动属性或WhileActivity活动NameCondition属性)的元数据Activity对应的名称/值对的集合。

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()
已过时.

返回一个String包含IdDisplayName //Activity

(继承自 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 活动本身。

适用于