ApplicationDirectoryMembershipCondition.Check Method (Evidence)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Security.Policy
Assembly:  mscorlib (in mscorlib.dll)

abstract Check : 
        evidence:Evidence -> bool
override Check : 
        evidence:Evidence -> bool

Parameters

evidence
Type: System.Security.Policy.Evidence

The evidence set against which to make the test.

Return Value

Type: System.Boolean

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

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

.NET Framework
Available since 1.1
Return to top
Show: