using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sy " /> av福利精品导航,91福利在线尤物,亚洲日本韩国一区

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

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

主站蜘蛛池模板: 马鞍山市| 浪卡子县| 杭州市| 民和| 南岸区| 黑龙江省| 大荔县| 合作市| 大安市| 鲜城| 锦屏县| 玛沁县| 潮安县| 沈阳市| 安庆市| 溆浦县| 淮南市| 长寿区| 礼泉县| 兴和县| 滨州市| 武汉市| 竹溪县| 新安县| 沙田区| 乐亭县| 富民县| 禹城市| 唐河县| 洞口县| 定州市| 龙井市| 博爱县| 太仆寺旗| 左权县| 鄂托克前旗| 通化市| 苍溪县| 商都县| 阿尔山市| 玛曲县|