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
[C#]
public virtual bool Check(
 Evidence evidence
);
[C++]
public: virtual bool Check(
 Evidence* evidence
);
[JScript]
public function Check(
   evidence : Evidence
) : Boolean;

Parameters

evidence
The evidence set against which to make the test.

Return Value

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

Implements

IMembershipCondition.Check

Remarks

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.

Requirements

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

Show: