using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sy " /> 成人免费网站视频,国产精品伊人日日,国产福利一区二区精品秒拍

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

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

主站蜘蛛池模板: 嘉定区| 安溪县| 晋江市| 晋宁县| 古田县| 娄烦县| 西乡县| 大化| 咸宁市| 民丰县| 神木县| 连州市| 侯马市| 疏勒县| 那坡县| 扎兰屯市| 广南县| 乐安县| 贡觉县| 清河县| 阿鲁科尔沁旗| 西盟| 邢台县| 榆社县| 科技| 黔西县| 金昌市| 沅陵县| 普宁市| 托里县| 江川县| 莱州市| 临夏县| 安福县| 台东市| 襄城县| 弥勒县| 罗定市| 弋阳县| 金堂县| 永宁县|