Activity<TResult> クラス

定義

アクティビティの型指定子を使用して結果の型を指定する、既存の Activity オブジェクトから複合アクティビティを作成するために使用される抽象基本クラス。

generic <typename TResult>
public ref class Activity abstract : System::Activities::ActivityWithResult
[System.ComponentModel.TypeConverter(typeof(System.Activities.XamlIntegration.ActivityWithResultConverter))]
public abstract class Activity<TResult> : System.Activities.ActivityWithResult
[<System.ComponentModel.TypeConverter(typeof(System.Activities.XamlIntegration.ActivityWithResultConverter))>]
type Activity<'Result> = class
    inherit ActivityWithResult
Public MustInherit Class Activity(Of TResult)
Inherits ActivityWithResult

型パラメーター

TResult

アクティビティの戻り値の型。

継承
Activity<TResult>
派生
属性

次の例は、 Activity<TResult>からクラスを派生させる方法を示しています。

public sealed class AppendString : Activity<string>
{
    // Input argument.
    [RequiredArgument]
    public InArgument<string> Name { get; set; }

    public AppendString()
    {
        // Define the implementation of this activity.
        this.Implementation = () => new Assign<string>
        {
            Value = new LambdaValue<string>(ctx => Name.Get(ctx) + " says hello world"),
            To = new LambdaReference<string>(ctx => Result.Get(ctx)),
        };
    }
}

注釈

Activity<TResult> は、アクティビティの種類階層の基底クラスです。 CodeActivity<TResult>NativeActivity<TResult>AsyncCodeActivity<TResult>DynamicActivity<TResult>などのジェネリック型定義を持つ他のすべてのアクティビティ型は、このクラスから派生します。

コンストラクター

名前 説明
Activity<TResult>()

派生クラスで実装された場合は、派生クラスの新しいインスタンスを作成します。

プロパティ

名前 説明
CacheId

ワークフロー定義のスコープ内で一意であるキャッシュの識別子を取得します。

(継承元 Activity)
Constraints

Constraintの検証を提供するように構成できるActivity アクティビティのコレクションを取得します。

(継承元 Activity)
DisplayName

デバッグ、検証、例外処理、追跡に使用されるオプションのフレンドリ名を取得または設定します。

(継承元 Activity)
Id

ワークフロー定義のスコープ内で一意の識別子を取得します。

(継承元 Activity)
Implementation

実行ロジックを含む Activity を返すデリゲートを取得または設定します。

(継承元 Activity)
ImplementationVersion

使用する実装のバージョンを取得または設定します。

(継承元 Activity)
Result

Activity<TResult>の結果引数を取得または設定します。

ResultType

派生クラスで実装された場合、アクティビティ OutArgumentの型を取得します。

(継承元 ActivityWithResult)

メソッド

名前 説明
CacheMetadata(ActivityMetadata)

アクティビティの引数、変数、子アクティビティ、およびアクティビティ デリゲートの説明を作成して検証します。

(継承元 Activity)
Equals(Object)

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

(継承元 Object)
FromValue(TResult)

指定した値に評価される Activity<TResult> 式を返します。

FromVariable(Variable)

指定したActivity<TResult>に評価されるVariable式を返します。

FromVariable(Variable<TResult>)

指定したActivity<TResult>に評価されるVariable<T>式を返します。

GetHashCode()

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

(継承元 Object)
GetType()

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

(継承元 Object)
MemberwiseClone()

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

(継承元 Object)
OnCreateDynamicUpdateMap(UpdateMapMetadata, Activity)

動的更新マップを作成するときにイベントを発生させます。

(継承元 Activity)
ShouldSerializeDisplayName()

DisplayName プロパティをシリアル化する必要があるかどうかを示します。

(継承元 Activity)
ToString()

StringIdDisplayNameを含むActivityを返します。

(継承元 Activity)

演算子

名前 説明
Implicit(TResult to Activity<TResult>)

指定した値に評価される Activity<TResult> 式を返します。

Implicit(Variable to Activity<TResult>)

指定したActivity<TResult>に評価されるVariable式を返します。

Implicit(Variable<TResult> to Activity<TResult>)

指定したActivity<TResult>に評価されるVariable<T>式を返します。

適用対象