<PackageReference Include="System.Security.Permissions" Version="9.0.5" />

ApplicationDirectoryMembershipCondition

Determines whether an assembly belongs to a code group by testing its application directory. This class cannot be inherited.

Initializes a new instance of the ApplicationDirectoryMembershipCondition class.

public bool Check(Evidence evidence)

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

Creates an equivalent copy of the membership condition.

public void FromXml(SecurityElement e)

Reconstructs a security object with a specified state from an XML encoding.

public void FromXml(SecurityElement e, PolicyLevel level)

Reconstructs a security object with a specified state from an XML encoding.

Creates an XML encoding of the security object and its current state.

Creates an XML encoding of the security object and its current state with the specified PolicyLevel.