WorkflowEnvironment クラス

定義

注意事項

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

現在のスレッドで実行されているワークフロー インスタンスのトランザクション環境を表します。

public ref class WorkflowEnvironment abstract sealed
public static class WorkflowEnvironment
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public static class WorkflowEnvironment
type WorkflowEnvironment = class
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type WorkflowEnvironment = class
Public Class WorkflowEnvironment
継承
WorkflowEnvironment
属性

注釈

注意

ここでは、廃止された型と名前空間について説明します。 詳細については、「.NET 4.5 での Windows Workflow Foundation の新機能」を参照してください。

WorkflowEnvironment は、現在のスレッドで実行されているワークフロー インスタンスのトランザクション環境を表します。 WorkflowEnvironment は 2 つのプロパティを持ちます。1 つは WorkBatch プロパティで、現在の作業バッチを公開するプロパティです。ホストまたはホスト サービスは、このプロパティに IPendingWork 項目を追加することにより、現在のトランザクションに参加することができます。もう 1 つは WorkflowInstanceId プロパティで、このスレッドで現在実行されているワークフロー インスタンスの Guid を公開するプロパティです。

プロパティ

WorkBatch

現在の作業バッチを取得します。

WorkflowInstanceId

現在のスレッドに関連付けられたワークフロー インスタンスの Guid を取得します。

適用対象