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!

PolicyLevel.Resolve

Resolves policy from evidence for the policy level, and returns PolicyStatement as result.

[Visual Basic]
Public Function Resolve( _
   ByVal evidence As Evidence _
) As PolicyStatement
[C#]
public PolicyStatement Resolve(
   Evidence evidence
);
[C++]
public: PolicyStatement* Resolve(
   Evidence* evidence
);
[JScript]
public function Resolve(
   evidence : Evidence
) : PolicyStatement;

Parameters

evidence
Evidence to resolve policy.

Return Value

Returns a PolicyStatement result of policy resolve.

Exceptions

Exception Type Condition
PolicyException if an invalid policy evaluation results. Specifically, multiple matching code groups marked "exclusive" would raise this exception.

Remarks

Resolve is the basic policy evaluation operation for policy levels. Given a set of evidence as input, this method tests membership conditions of code groups starting at the root and working down as matched. The combination of permissions resulting from the matching code groups produces a policy statement that is returned.

Security policy uses the resolved policy statements for all applicable policy levels in granting permissions to code together with the code request for permissions.

See Also

PolicyLevel Class | PolicyLevel Members | System.Security.Policy Namespace