using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sy " /> 福利在线免费视频,91蜜桃婷婷狠狠久久综合9色,日韩精品一区二区三区蜜臀

色尼玛亚洲综合影院,亚洲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工作流的動態加載,轉載需保留來源!

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

主站蜘蛛池模板: 宣化县| 军事| 太白县| 集贤县| 莫力| 清水河县| 蒙城县| 屏山县| 喀什市| 黄大仙区| 铁岭市| 台南市| 罗甸县| 临夏市| 鄱阳县| 庆元县| 宽城| 贵溪市| 花莲市| 和龙市| 文水县| 正定县| 东宁县| 康定县| 惠来县| 云龙县| 理塘县| 古蔺县| 通城县| 金塔县| 崇礼县| 香河县| 德江县| 江北区| 高青县| 双流县| 图片| 广元市| 禄丰县| 峨边| 云龙县|