有没有办法限制或限制活动可以访问的范围? [英] Is there a way to contrain or rest the scope that a activity has access to?

查看:116
本文介绍了有没有办法限制或限制活动可以访问的范围?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想做的是建立一个顺序活动,该活动A)有自己的作用域,B)不允许子活动获得其自身作用域之外的作用域. p>

What I want to do is build a sequence activity that A) has its own scope and B) does not let child activities gain access to scope outside of its own.
Is this possible?

推荐答案

如果要定义自定义活动,则属于其实现的活动只能访问该活动中可用的参数.您是否在要求安排其他活动(并公开活动"属性)的复合活动可以将那些子类之外的数据访问权限限制为这些子对象?如果是这样,则您的自定义活动可以使用CacheMetadata隐藏某些实现".子元素的变量.

If you're defining a custom activity then activities that are part of it's implementation can only access the arguments available on the activity. Are you asking that a composite activity that schedules other activities (and exposes an Activities property) can restrict access to the data outside its scope to those children? If so, your custom activity can use CacheMetadata to hide certain "implementation" variables to it's children.


这篇关于有没有办法限制或限制活动可以访问的范围?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆