NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

SecurityManager.ResolvePolicyGroups

This method follows the same policy evaluation as ResolvePolicy, but instead of returning granted and denied permissions it returns a collection of the code groups that matched the evidence provided, which can be useful in analyzing how a given policy configuration works with specific kinds of evidence.

[Visual Basic]
Public Shared Function ResolvePolicyGroups( _
   ByVal evidence As Evidence _
) As IEnumerator
[C#]
public static IEnumerator ResolvePolicyGroups(
   Evidence evidence
);
[C++]
public: static IEnumerator* ResolvePolicyGroups(
   Evidence* evidence
);
[JScript]
public static function ResolvePolicyGroups(
   evidence : Evidence
) : IEnumerator;

Parameters

evidence
Evidence set against which policy is evaluated.

Return Value

Returns an TBD enumeration of the set of code groups matching the evidence, or the single code group matched that was exclusive.

Exceptions

Exception Type Condition
PolicyException if more than one matching code group is marked exclusive.

Remarks

Code groups will be returned from all applicable levels of the policy hierarchy that match the evidence. If one of the matching code groups is marked exclusive it is the only code group returned.

See Also

SecurityManager Class | SecurityManager Members | System.Security Namespace