Export (0) Print
Expand All

ApplicationDirectoryMembershipCondition.Check Method

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

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

public bool Check(
	Evidence evidence
)

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.

Implements

IMembershipCondition.Check(Evidence)

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

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft