惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Martin Fowler
Martin Fowler
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
雷峰网
雷峰网
J
Java Code Geeks
G
Google Developers Blog
博客园 - 司徒正美
The GitHub Blog
The GitHub Blog
L
LangChain Blog
人人都是产品经理
人人都是产品经理
GbyAI
GbyAI
Vercel News
Vercel News
S
SegmentFault 最新的问题
Engineering at Meta
Engineering at Meta
H
Hackread – Cybersecurity News, Data Breaches, AI and More
云风的 BLOG
云风的 BLOG
F
Fortinet All Blogs
Y
Y Combinator Blog
博客园_首页
Last Week in AI
Last Week in AI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
罗磊的独立博客
A
About on SuperTechFans
B
Blog
Microsoft Security Blog
Microsoft Security Blog

博客园 - 光阴的故事-SKY

基于.NET平台常用的框架整理 My 2016 如何做好一个保安队长。 Jax 博文阅读密码验证 - 博客园 博文阅读密码验证 - 博客园 博文阅读密码验证 - 博客园 我的2014 teee 师说 韩愈 荀子·劝学 parallelActivity EventHandlingScopeActivity workflow 角色的使用关键 ConditionedActivityGroup ThrowActivity 浅谈 Workflow 的角色控制的优势与局限 数据库的数据 转化为XML 在页面上浏览 自定义用户跟踪
获取容器内的所有节点
光阴的故事-SKY · 2007-12-27 · via 博客园 - 光阴的故事-SKY

        public static void ShowActivityStruct(object activity)
        {
            if (activity is System.Workflow.ComponentModel.CompositeActivity)
            {
                System.Workflow.ComponentModel.CompositeActivity wxd;
                wxd = (System.Workflow.ComponentModel.CompositeActivity)activity;
                string s;
                foreach (object temp in wxd.Activities)
                {
                    ShowActivityStruct(temp);//递归
                }
               
              
            }
            else
            {
                if (activity is System.Workflow.ComponentModel.Activity)
                {
                    System.Workflow.ComponentModel.Activity wxd;
                    wxd = (System.Workflow.ComponentModel.Activity)activity;
                    string s;
                    s = string.Format("说明:{0},名称:{1},类型:{2}", wxd.Description, wxd.QualifiedName, wxd.GetType().ToString());
                    Console.WriteLine(s);
                }
            }
        }

调用

ShowActivityStruct(instance.GetWorkflowDefinition());