This documentation is archived and is not being maintained.

ApplicationDirectoryMembershipCondition.Check Method

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

[Visual Basic]
Public Overridable Function Check( _
   ByVal evidence As Evidence _
) As Boolean Implements IMembershipCondition.Check
public virtual bool Check(
 Evidence evidence
public: virtual bool Check(
 Evidence* evidence
public function Check(
   evidence : Evidence
) : Boolean;


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.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ApplicationDirectoryMembershipCondition Class | ApplicationDirectoryMembershipCondition Members | System.Security.Policy Namespace