System.Security.Policy.ApplicationDirectoryMembershipCondition.Check Method

Determines whether the membership condition is satisfied by the specified evidence.

Syntax

public bool Check (Evidence evidence)

Parameters

evidence
The evidence set against which to make the test.

Returns

true if the specified evidence satisfies the membership condition; otherwise, false.

Remarks

The evidence parameter must contain both System.Security.Policy.ApplicationDirectory evidence that specifies the application directory of the running application and System.Security.Policy.Url evidence that specifies the code base of the assembly. The code base specified by the System.Security.Policy.Url evidence must represent a path in the directory tree of the application directory specified by the System.Security.Policy.ApplicationDirectory evidence for this method to return true.

Requirements

Namespace: System.Security.Policy
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0