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!

ICodeGroup.Resolve

Resolve policy for the code group and its descendants for a set of evidence. Given evidence for an assembly to be loaded, this method evalutes the code group by first checking the membership condition against the evidence and if it matches returning a policy statement for the code group, including evaluation of child code groups.

The system uses Resolve() on the policy levels to determine what permissions to grant to loaded code from the resultant policy statements and the code request on the assembly.

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

Parameters

evidence
evidence for the assembly

Return Value

Policy statement consisting of permission granted by the code group, with optional attributes. Or a NULL value if the code group does not apply (membership condition does not match evidence).

Remarks

Code groups should propagate the resolve operation down through their child code groups according to their particular semantics.

See Also

ICodeGroup Interface | ICodeGroup Members | System.Security.Policy Namespace