TransactionScopeActivity クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
注意事項
The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*
ワークフローのうち、トランザクションとして一括処理する範囲。 この Transaction の実行が始まると新しい Activity が起動され、Activity が正常に終了するとトランザクションはコミットされます。 このクラスは継承できません。
public ref class TransactionScopeActivity sealed : System::Workflow::ComponentModel::CompositeActivity, System::Workflow::ComponentModel::IActivityEventListener<System::Workflow::ComponentModel::ActivityExecutionStatusChangedEventArgs ^>
[System.Drawing.ToolboxBitmap(typeof(System.Workflow.ComponentModel.TransactionScopeActivity), "Resources.Sequence.png")]
[System.Workflow.ComponentModel.PersistOnClose]
public sealed class TransactionScopeActivity : System.Workflow.ComponentModel.CompositeActivity, System.Workflow.ComponentModel.IActivityEventListener<System.Workflow.ComponentModel.ActivityExecutionStatusChangedEventArgs>
[System.Drawing.ToolboxBitmap(typeof(System.Workflow.ComponentModel.TransactionScopeActivity), "Resources.Sequence.png")]
[System.Workflow.ComponentModel.PersistOnClose]
[System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")]
public sealed class TransactionScopeActivity : System.Workflow.ComponentModel.CompositeActivity, System.Workflow.ComponentModel.IActivityEventListener<System.Workflow.ComponentModel.ActivityExecutionStatusChangedEventArgs>
[<System.Drawing.ToolboxBitmap(typeof(System.Workflow.ComponentModel.TransactionScopeActivity), "Resources.Sequence.png")>]
[<System.Workflow.ComponentModel.PersistOnClose>]
type TransactionScopeActivity = class
inherit CompositeActivity
interface IActivityEventListener<ActivityExecutionStatusChangedEventArgs>
[<System.Drawing.ToolboxBitmap(typeof(System.Workflow.ComponentModel.TransactionScopeActivity), "Resources.Sequence.png")>]
[<System.Workflow.ComponentModel.PersistOnClose>]
[<System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")>]
type TransactionScopeActivity = class
inherit CompositeActivity
interface IActivityEventListener<ActivityExecutionStatusChangedEventArgs>
Public NotInheritable Class TransactionScopeActivity
Inherits CompositeActivity
Implements IActivityEventListener(Of ActivityExecutionStatusChangedEventArgs)
- 継承
- 属性
- 実装
注釈
注意
ここでは、廃止された型と名前空間について説明します。 詳細については、「.NET 4.5 での Windows Workflow Foundation の新機能」を参照してください。
TransactionScopeActivity を別の TransactionScopeActivity の入れ子にすることはできません。
TransactionScopeActivity が正常にその実行を終えると、ワークフロー インスタンスは必ず永続化されます。
TransactionScopeActivity には、FaultHandlersActivity を含めることができません。
TransactionScopeActivity には、CancellationHandlerActivity を含めることができません。
コンストラクター
| TransactionScopeActivity() |
TransactionScopeActivity クラスの新しいインスタンスを初期化します。 |
| TransactionScopeActivity(String) |
アクティビティ名を使用して、TransactionScopeActivity クラスの新しいインスタンスを初期化します。 |
プロパティ
| Activities |
子アクティビティすべてのコレクションを表す、ActivityCollection オブジェクトを取得します。 (継承元 CompositeActivity) |
| CanModifyActivities |
Activities の各アクティビティが更新可能であるかどうかを取得または設定します。 (継承元 CompositeActivity) |
| Description |
Activity の、ユーザーが定義した説明を取得または設定します。 (継承元 Activity) |
| DesignMode |
このインスタンスがデザイン モードとランタイム モードのどちらであるかを示す値を取得します。 (継承元 DependencyObject) |
| Enabled |
このインスタンスの実行と検証が可能かどうかを示す値を取得または設定します。 (継承元 Activity) |
| EnabledActivities |
Activities のうち有効なものだけを集めた、読み取り専用のコレクションを取得します。 (継承元 CompositeActivity) |
| ExecutionResult |
このインスタンスを最後に実行した際の ActivityExecutionResult を取得します。 (継承元 Activity) |
| ExecutionStatus |
このインスタンスの、現在の ActivityExecutionStatus を取得します。 (継承元 Activity) |
| IsDynamicActivity |
アクティビティがワークフロー インスタンスの既定の ActivityExecutionContext で実行されているかどうかに関する情報を取得します。 (継承元 Activity) |
| Name |
このインスタンスの名前を取得または設定します。 この名前は、ワークフロー プロジェクトの作成に使用されたプログラミング言語の変数の名前付け規則に準拠している必要があります。 (継承元 Activity) |
| Parent |
この CompositeActivity を格納している Activity を取得します。 (継承元 Activity) |
| ParentDependencyObject |
DependencyObject グラフにおける親 DependencyObject を取得します。 (継承元 DependencyObject) |
| QualifiedName |
アクティビティの限定名を取得します。 限定アクティビティ名は、ワークフロー インスタンス内で一意です。 (継承元 Activity) |
| Site |
Site の DependencyObject コンポーネントの参照を取得または設定します。 (継承元 DependencyObject) |
| TransactionOptions |
このインスタンスに関連付けられている WorkflowTransactionOptions を取得します。 |
| UserData |
このクラス インスタンスにカスタム データを関連付ける IDictionary を取得します。 (継承元 DependencyObject) |
| WorkflowInstanceId |
インスタンスに関連付けられた Guid を取得します。 (継承元 Activity) |
メソッド
events
| Canceling |
アクティビティ実行が取り消された場合に発生します。 (継承元 Activity) |
| Closed |
Activity の実行終了時に発生します。 (継承元 Activity) |
| Compensating |
Activity 上で補正メソッドが起動されたときに発生します。 (継承元 Activity) |
| Executing |
Activity の実行時に発生します。 (継承元 Activity) |
| Faulting |
インスタンスの実行中、例外が発生したときに発生します。 (継承元 Activity) |
| StatusChanged |
実行中の ActivityExecutionStatus の Activity が変更された場合に発生します。 (継承元 Activity) |
明示的なインターフェイスの実装
| IActivityEventListener<ActivityExecutionStatusChangedEventArgs>.OnEvent(Object, ActivityExecutionStatusChangedEventArgs) |
定期受信されているイベントが発生したときの処理プロシージャを定義します。 |
| IComponent.Disposed |
コンポーネントの Disposed イベントを処理するメソッドを表します。 (継承元 DependencyObject) |