【发布时间】:2013-03-14 19:54:00
【问题描述】:
我发现在我的一些代码中,我有以下语法来保护插件免受 FUBARing 的影响。看在上帝的份上,我不记得为什么我将析取条件设置为 EntityReference。
Context.InputParameters["Target"] 是每一个 EntityReference 吗?
bool goodToGo
= Context.InputParameters.Contains("Target")
&& Context.PrimaryEntityName == "email";
&& (
Context.InputParameters["Target"] is Entity
|| Context.InputParameters["Target"] is EntityReference);
除了实体之外,是否有任何东西?
【问题讨论】:
-
还有一些其他的东西也可以——我确实在某个地方有一个列表。现在如果我能记得在哪里......
标签: c# plugins dynamics-crm-2011