SetStateEventArgs クラス

定義

注意事項

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

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
属性

注釈

Note

この資料では、古い型と名前空間について説明します。 詳細については、「Windows Workflow Foundation 4.5 のDeprecated 型」を参照してください。

StateMachineWorkflowActivityでは、ホスト アプリケーションからの状態を設定できます。 これにより、ホスト アプリケーションはステート マシンの現在の状態をオーバーライドできます。 これを実現するには、定数SetStateEventArgsによって指定された WorkflowQueue にStateMachineWorkflowActivity.SetStateQueueName クラスのインスタンスをエンキューします。

これを実現するより簡単な方法は、SetState クラスで StateMachineWorkflowInstance メソッドを使用することです。

SetState メソッドを使用してホストから SetState 操作を実行することも、ステート マシン ワークフローにイベントをエンキューして自分で実行することもできます。

ステート マシン ワークフローでは、 SetStateQueue と呼ばれる特殊なキューを使用して、これらの特別なイベントをリッスンします。

コンストラクター

名前 説明
SetStateEventArgs(String)
古い.

SetStateEventArgs クラスの新しいインスタンスを初期化します。

プロパティ

名前 説明
TargetStateName
古い.

StateActivityを設定する状態を取得します。

メソッド

名前 説明
Equals(Object)
古い.

指定したオブジェクトが現在のオブジェクトと等しいかどうかを判断します。

(継承元 Object)
GetHashCode()
古い.

既定のハッシュ関数として機能します。

(継承元 Object)
GetType()
古い.

現在のインスタンスの Type を取得します。

(継承元 Object)
MemberwiseClone()
古い.

現在の Objectの簡易コピーを作成します。

(継承元 Object)
ToString()
古い.

現在のオブジェクトを表す文字列を返します。

(継承元 Object)

適用対象

こちらもご覧ください