Code Group. Resolve(Evidence) Method
Resolves policy for the code group and its descendants for a set of evidence.
public: override System::Security::Policy::PolicyStatement ^ Resolve(System::Security::Policy::Evidence ^ evidence);
public override System.Security.Policy.PolicyStatement Resolve (System.Security.Policy.Evidence evidence);
override this.Resolve : System.Security.Policy.Evidence -> System.Security.Policy.PolicyStatement
The evidence for the assembly.
A policy statement consisting of the permissions granted by the code group with optional attributes, or
null if the code group does not apply (the membership condition does not match the specified evidence).
evidence parameter is
The current policy is
More than one code group (including the parent code group and all child code groups) is marked Exclusive.
Assembly^ assembly = Members::typeid->Assembly; Evidence^ executingEvidence = assembly->Evidence; PolicyStatement^ policy = fileCodeGroup->Resolve( executingEvidence );
Assembly assembly = typeof(Members).Assembly; Evidence executingEvidence = assembly.Evidence; PolicyStatement policy = fileCodeGroup.Resolve(executingEvidence);
Dim executingAssembly As [Assembly] executingAssembly = Me.GetType().Assembly Dim executingEvidence As Evidence = executingAssembly.Evidence Dim policy As PolicyStatement policy = fileCodeGroup.Resolve(executingEvidence)
Given evidence for an assembly to be loaded, this method evaluates the code group by first checking the membership condition against the specified evidence. If there is a match, this method returns a policy statement for the code group, including evaluation of child code groups.
The .NET Framework security system uses Resolve on the policy levels to determine which permissions to grant to loaded code from the resulting policy statements and the code request on the assembly.