While クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
条件が trueに評価されている間、包含アクティビティを実行します。
public ref class While sealed : System::Activities::NativeActivity
[System.Windows.Markup.ContentProperty("Body")]
public sealed class While : System.Activities.NativeActivity
[<System.Windows.Markup.ContentProperty("Body")>]
type While = class
inherit NativeActivity
Public NotInheritable Class While
Inherits NativeActivity
- 継承
- 属性
例
次のコード サンプルは、 While アクティビティの作成を示しています。
new While
{
Condition = true,
Body = new Receive
{
ServiceContractName = Constants.POContractName,
OperationName = Constants.UpdatePOName,
CorrelatesWith = poidHandle, // identifies that the UpdatePO operation is waiting on the PurchaseOrderId that was used to initialize this handle
CorrelatesOn = new MessageQuerySet // the query that is used on an incoming message to find the requisite PurchaseOrderId specified in the correlation
{
// Id is the name of the incoming parameter within the PurchaseOrder
{ "PoId", new XPathMessageQuery("sm:body()/defns:PurchaseOrder/defns:Id", Constants.XPathMessageContext) }
},
Content = ReceiveContent.Create(new OutArgument<PurchaseOrder>(po)) // creates a ReceiveMessageContent
}
},
コンストラクター
| 名前 | 説明 |
|---|---|
| While() |
While アクティビティの新しいインスタンスを作成します。 |
| While(Activity<Boolean>) |
While アクティビティの新しいインスタンスを作成します。 |
| While(Expression<Func<ActivityContext,Boolean>>) |
While アクティビティの新しいインスタンスを作成します。 |
プロパティ
| 名前 | 説明 |
|---|---|
| Body |
Activity ループで実行する |
| CacheId |
ワークフロー定義のスコープ内で一意であるキャッシュの識別子を取得します。 (継承元 Activity) |
| CanInduceIdle |
アクティビティによってワークフローがアイドル状態になる可能性があるかどうかを示す値を取得または設定します。 (継承元 NativeActivity) |
| Condition |
Activity<TResult> ループの各イテレーションの前に評価される |
| Constraints |
Constraintの検証を提供するように構成できるActivity アクティビティのコレクションを取得します。 (継承元 Activity) |
| DisplayName |
デバッグ、検証、例外処理、追跡に使用されるオプションのフレンドリ名を取得または設定します。 (継承元 Activity) |
| Id |
ワークフロー定義のスコープ内で一意の識別子を取得します。 (継承元 Activity) |
| Implementation |
アクティビティの実行ロジック。 (継承元 NativeActivity) |
| ImplementationVersion |
アクティビティの実装バージョンを取得または設定します。 (継承元 NativeActivity) |
| Variables |