Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. public static Boolean IsInternalParentAssign(IPluginExecutionContext context)
  2. {
  3. Boolean result = false;
  4. if (context.ParentContext != null)
  5. {
  6. IPluginExecutionContext parentContext = context.ParentContext;
  7. if (parentContext.MessageName == "Assign"
  8. && context.Depth == 1
  9. && parentContext.PrimaryEntityId != context.PrimaryEntityId)
  10. {
  11. result = true;
  12. }
  13. }
  14. return result;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement