Activity クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
注意事項
The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*
ワークフローの基本的な構成要素を表します。 Activity は、すべてのアクティビティの基本クラスです。
public ref class Activity : System::Workflow::ComponentModel::DependencyObject
[System.Drawing.ToolboxBitmap(typeof(System.Workflow.ComponentModel.Activity), "Design.Resources.Activity.png")]
[System.Workflow.ComponentModel.Compiler.ActivityCodeGenerator(typeof(System.Workflow.ComponentModel.Compiler.ActivityCodeGenerator))]
[System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.ComponentModel.Compiler.ActivityValidator))]
[System.Workflow.ComponentModel.Serialization.RuntimeNameProperty("Name")]
public class Activity : System.Workflow.ComponentModel.DependencyObject
[System.Drawing.ToolboxBitmap(typeof(System.Workflow.ComponentModel.Activity), "Design.Resources.Activity.png")]
[System.Workflow.ComponentModel.Compiler.ActivityCodeGenerator(typeof(System.Workflow.ComponentModel.Compiler.ActivityCodeGenerator))]
[System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.ComponentModel.Compiler.ActivityValidator))]
[System.Workflow.ComponentModel.Serialization.RuntimeNameProperty("Name")]
[System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")]
public class Activity : System.Workflow.ComponentModel.DependencyObject
[<System.Drawing.ToolboxBitmap(typeof(System.Workflow.ComponentModel.Activity), "Design.Resources.Activity.png")>]
[<System.Workflow.ComponentModel.Compiler.ActivityCodeGenerator(typeof(System.Workflow.ComponentModel.Compiler.ActivityCodeGenerator))>]
[<System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.ComponentModel.Compiler.ActivityValidator))>]
[<System.Workflow.ComponentModel.Serialization.RuntimeNameProperty("Name")>]
type Activity = class
inherit DependencyObject
[<System.Drawing.ToolboxBitmap(typeof(System.Workflow.ComponentModel.Activity), "Design.Resources.Activity.png")>]
[<System.Workflow.ComponentModel.Compiler.ActivityCodeGenerator(typeof(System.Workflow.ComponentModel.Compiler.ActivityCodeGenerator))>]
[<System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.ComponentModel.Compiler.ActivityValidator))>]
[<System.Workflow.ComponentModel.Serialization.RuntimeNameProperty("Name")>]
[<System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")>]
type Activity = class
inherit DependencyObject
Public Class Activity
Inherits DependencyObject
- 継承
- 派生
- 属性
注釈
Note
この資料では、古い型と名前空間について説明します。 詳細については、「Windows Workflow Foundation 4.5 の
Activityは、ワークフローの基本的な構成要素です。 Activityは、任意のクラスなどのプロパティとイベントのセットと、アクティビティの実行時動作を定義する実行ロジックを定義します。 追加コンポーネントのセットは、 Activityに関連付けることができます。 これには、検証コントロール、コード ジェネレーター、カスタム シリアライザー、およびデザイナーが含まれますが、これらに限定されません。
すべてのアクティビティは、 Activity 基底クラスで定義されている共通のプロパティ セットを共有します。 各 Activity は、このクラスを拡張することで、要件に従って独自の追加プロパティを宣言できます。 ActivityはDependencyObjectから派生するため、プロパティは標準の CLR プロパティおよび依存関係プロパティとして定義できます。
Activityの実行ロジックは、任意のActivityとワークフロー ランタイムの間に存在するコントラクトを満たします。 Activityを使用するワークフロー開発者が動作を認識できるように、Activityの実行ロジックを機能的な意味で文書化する必要があります。 実行ロジックはワークフロー ランタイムと Activityの間に厳密に存在するコントラクトの一部であるため、実行ロジック自体はワークフローにアクティビティを含めるワークフロー開発者には表示されません。
コンストラクター
| 名前 | 説明 |
|---|---|
| Activity() |
古い.
Activity クラスの新しいインスタンスを初期化します。 |
| Activity(String) |
古い.
|
フィールド
| 名前 | 説明 |
|---|---|
| ActivityContextGuidProperty |
古い.
Activityに関連付けられているActivityExecutionContextのGuidを表すDependencyProperty。 |
| CancelingEvent |
古い.
DependencyProperty イベントを対象とする Canceling を表します。 |
| ClosedEvent |
古い.
DependencyProperty イベントを対象とする Closed を表します。 |
| CompensatingEvent |
古い.
DependencyProperty イベントを対象とする Compensating を表します。 |
| ExecutingEvent |
古い.
アクティビティの実行時に発生するExecuting イベントを対象とするDependencyPropertyを表します。 |
| FaultingEvent |
古い.
Faulting イベントを表すDependencyProperty。 |
| StatusChangedEvent |
古い.
DependencyProperty イベントを対象とする StatusChanged を表します。 |
プロパティ
| 名前 | 説明 |
|---|---|
| Description |
古い.
Activityのユーザー定義の説明を取得または設定します。 |
| DesignMode |
古い.
このインスタンスがデザイン モードかランタイム モードかを示す値を取得します。 (継承元 DependencyObject) |
| Enabled |
古い.
このインスタンスの実行と検証が有効かどうかを示す値を取得または設定します。 |
| ExecutionResult |
古い.
このインスタンスを最後に実行しようとした ActivityExecutionResult を取得します。 |
| ExecutionStatus |
古い.
このインスタンスの現在の ActivityExecutionStatus を取得します。 |
| IsDynamicActivity |
古い.
アクティビティがワークフロー インスタンスの既定の ActivityExecutionContext 内で実行されているかどうかを示す情報を取得します。 |
| Name |
古い.
このインスタンスの名前を取得または設定します。 この名前は、ワークフロー プロジェクトで使用されているプログラミング言語の変数の名前付け規則に準拠している必要があります。 |
| Parent |
古い.
この CompositeActivityを含む Activity を取得します。 |
| ParentDependencyObject |
古い.
DependencyObject グラフ内の親 DependencyObject を取得します。 (継承元 DependencyObject) |
| QualifiedName |
古い.
アクティビティの修飾名を取得します。 修飾されたアクティビティ名は、ワークフロー インスタンス内で常に一意です。 |
| Site |
古い.
Siteの DependencyObject コンポーネントへの参照を取得または設定します。 (継承元 DependencyObject) |
| UserData |
古い.
カスタム データをこのクラス インスタンスに関連付ける IDictionary を取得します。 (継承元 DependencyObject) |
| WorkflowInstanceId |
古い.
インスタンスに関連付けられている Guid を取得します。 |
メソッド
イベント
| 名前 | 説明 |
|---|---|
| Canceling |
古い.
アクティビティの実行が取り消されたときに発生します。 |
| Closed |
古い.
Activity の実行が完了したときに発生します。 |
| Compensating |
古い.
Activityで補正メソッドを実行するときに発生します。 |
| Executing |
古い.
Activity の実行時に発生します。 |
| Faulting |
古い.
インスタンスの実行中に例外が発生したときに発生します。 |
| StatusChanged |
古い.
実行中の ActivityExecutionStatus の Activity が変更されたときに発生します。 |
明示的なインターフェイスの実装
| 名前 | 説明 |
|---|---|
| IComponent.Disposed |
古い.
コンポーネントの Disposed イベントを処理するメソッドを表します。 (継承元 DependencyObject) |