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

推荐订阅源

Forbes - Security
Forbes - Security
GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
S
SegmentFault 最新的问题
Y
Y Combinator Blog
Recorded Future
Recorded Future
博客园 - Franky
I
InfoQ
T
The Blog of Author Tim Ferriss
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
阮一峰的网络日志
阮一峰的网络日志
T
Tailwind CSS Blog
Cyberwarzone
Cyberwarzone
The Register - Security
The Register - Security
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
雷峰网
雷峰网
P
Palo Alto Networks Blog
G
GRAHAM CLULEY
Cloudbric
Cloudbric
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
MongoDB | Blog
MongoDB | Blog
F
Full Disclosure
Google DeepMind News
Google DeepMind News
Recent Commits to openclaw:main
Recent Commits to openclaw:main
C
Check Point Blog
爱范儿
爱范儿
The GitHub Blog
The GitHub Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
W
WeLiveSecurity
T
Threat Research - Cisco Blogs
U
Unit 42
N
Netflix TechBlog - Medium
The Cloudflare Blog
Spread Privacy
Spread Privacy
Microsoft Azure Blog
Microsoft Azure Blog
美团技术团队
T
Troy Hunt's Blog
Engineering at Meta
Engineering at Meta
H
Heimdal Security Blog
TaoSecurity Blog
TaoSecurity Blog
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tenable Blog
B
Blog
S
Securelist
H
Hacker News: Front Page
Google Online Security Blog
Google Online Security Blog
G
Google Developers 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());