SetStateEventArgs 类

定义

注意

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

表示一个类,该类用作参数来设置 a StateMachineWorkflowActivity.

public ref class SetStateEventArgs : EventArgs
[System.Runtime.InteropServices.ComVisible(false)]
[System.Serializable]
public class SetStateEventArgs : EventArgs
[System.Runtime.InteropServices.ComVisible(false)]
[System.Serializable]
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public class SetStateEventArgs : EventArgs
[<System.Runtime.InteropServices.ComVisible(false)>]
[<System.Serializable>]
type SetStateEventArgs = class
    inherit EventArgs
[<System.Runtime.InteropServices.ComVisible(false)>]
[<System.Serializable>]
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type SetStateEventArgs = class
    inherit EventArgs
Public Class SetStateEventArgs
Inherits EventArgs
继承
SetStateEventArgs
属性

注解

注释

此材料讨论已过时的类型和命名空间。 有关详细信息,请参阅 Windows Workflow Foundation 4.50 中的 Deprecated Types。

允许 StateMachineWorkflowActivity 从主机应用程序设置状态。 这使主机应用程序能够替代状态机的当前状态。 这可以通过将类的 SetStateEventArgs 实例排队到由常量 StateMachineWorkflowActivity.SetStateQueueName命名的 WorkflowQueue 来实现。

实现此目的的一种更简单方法是使用 SetState 类中的 StateMachineWorkflowInstance 方法。

可以使用该方法 SetState 从主机执行 SetState 操作,也可以通过将事件排队到状态机工作流来自行执行此操作。

状态机工作流使用调用 SetStateQueue 的特殊队列来侦听这些特殊事件。

构造函数

名称 说明
SetStateEventArgs(String)
已过时.

初始化 SetStateEventArgs 类的新实例。

属性

名称 说明
TargetStateName
已过时.

获取要设置为 StateActivity 的状态。

方法

名称 说明
Equals(Object)
已过时.

确定指定的对象是否等于当前对象。

(继承自 Object)
GetHashCode()
已过时.

用作默认哈希函数。

(继承自 Object)
GetType()
已过时.

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()
已过时.

创建当前 Object的浅表副本。

(继承自 Object)
ToString()
已过时.

返回一个表示当前对象的字符串。

(继承自 Object)

适用于

另请参阅