ApplicationDirectoryMembershipCondition.Check(Evidence) 方法
定义
确定指定的证据是否满足成员条件。Determines whether the membership condition is satisfied by the specified evidence.
public:
virtual bool Check(System::Security::Policy::Evidence ^ evidence);
public bool Check (System.Security.Policy.Evidence evidence);
abstract member Check : System.Security.Policy.Evidence -> bool
override this.Check : System.Security.Policy.Evidence -> bool
Public Function Check (evidence As Evidence) As Boolean
参数
- evidence
- Evidence
证据集,将根据它进行测试。The evidence set against which to make the test.
返回
如果指定的证据满足成员条件,则为 true;否则为 false。true if the specified evidence satisfies the membership condition; otherwise, false.
实现
注解
evidence参数必须包含 ApplicationDirectory 指定正在运行的应用程序的应用程序目录的证据,以及 Url 指定程序集的基本代码的证据。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. 证据指定的代码 Url 必须表示证据的路径树中的路径,该路径由证据指定,由此 ApplicationDirectory 方法返回 true 。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.