How to Return True or False from a Policy
You cannot specify a return type for a policy directly. However, you can pass one of the following types of facts to the policy, have the policy change the value of the fact to true
or false
, and then check the value of the property/element/column after the policy is executed:
A .NET object with a property of type
Boolean
An XML document with an element of type
Boolean
A database table with a column of type
Boolean
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for