using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sy " /> 欧美日日夜夜,希岛爱理av一区二区三区,卡通欧美亚洲

色尼玛亚洲综合影院,亚洲3atv精品一区二区三区,麻豆freexxxx性91精品,欧美在线91

WF4.0中如何實現XAML工作流的動態加載

  我接下來還是用一個例子講解一下如何在WF 4中動態加載xaml工作流的做法吧。

  1. 創建自定義的Activity

image

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Activities;

namespace WorkflowConsoleApplication1
{

public sealed class MyActivity : CodeActivity
{
// Define an activity input argument of type string
public InArgument<string> Text { get; set; }

// If your activity returns a value, derive from CodeActivity<TResult>
// and return the value from the Execute method.
protected override void Execute(CodeActivityContext context)
{
// Obtain the runtime value of the Text input argument
string text = context.GetValue(this.Text);

Console.WriteLine(text);
}
}
}

NET技術WF4.0中如何實現XAML工作流的動態加載,轉載需保留來源!

鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。

主站蜘蛛池模板: 河南省| 阳原县| 长治市| 延庆县| 桂东县| 江孜县| 叶城县| 西林县| 中江县| 磴口县| 山东| 辽中县| 闻喜县| 杭锦后旗| 东丽区| 西吉县| 宜黄县| 中阳县| 沾益县| 遵化市| 三门峡市| 徐水县| 石棉县| 孟连| 西城区| 宁德市| 宁都县| 正阳县| 梅州市| 错那县| 寻乌县| 乾安县| 出国| 阿拉善右旗| 黔东| 湖南省| 饶阳县| 株洲市| 丰宁| 锡林郭勒盟| 涿州市|