NativeActivity コンストラクター

定義

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

protected:
 NativeActivity();
protected NativeActivity ();
Protected Sub New ()

NativeActivity<TResult> を継承するクラスの作成方法を次のコード サンプルに示します。 この例は、 ネイティブ アクティビティを使用したカスタム複合 サンプルのものです。

public sealed class MySequence : NativeActivity
{
    Collection<Activity> children;
    Collection<Variable> variables;
    Variable<int> currentIndex;
    CompletionCallback onChildComplete;

    public MySequence()
        : base()
    {
        this.children = new Collection<Activity>();
        this.variables = new Collection<Variable>();
        this.currentIndex = new Variable<int>();
    }

    public Collection<Activity> Activities
    {
        get
        {
            return this.children;
        }
    }

    public Collection<Variable> Variables
    {
        get
        {
            return this.variables;
        }
    }

適用対象