This documentation is archived and is not being maintained.

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
)
public final boolean Check (
	Evidence evidence
)
public final function Check (
	evidence : Evidence
) : boolean
Not applicable.

Parameters

evidence

The evidence set against which to make the test.

Return Value

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.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0
Show: