ApplicationDirectoryMembershipCondition.Check(Evidence) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Parameters
- evidence
- Evidence
The evidence set against which to make the test.
Returns
true
if the specified evidence satisfies the membership condition; otherwise, false
.
Implements
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
.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om