Determines whether an assembly belongs to a code group by testing its application directory. This class cannot be inherited.
For a list of all members of this type, see ApplicationDirectoryMembershipCondition Members.
[Visual Basic] <Serializable> NotInheritable Public Class _ ApplicationDirectoryMembershipCondition Implements IMembershipCondition, ISecurityEncodable, _ ISecurityPolicyEncodable [C#] [Serializable] public sealed class ApplicationDirectoryMembershipCondition : IMembershipCondition, ISecurityEncodable, ISecurityPolicyEncodable [C++] [Serializable] public __gc __sealed class ApplicationDirectoryMembershipCondition : public IMembershipCondition, ISecurityEncodable, ISecurityPolicyEncodable [JScript] public Serializable class ApplicationDirectoryMembershipCondition implements IMembershipCondition, ISecurityEncodable, ISecurityPolicyEncodable
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
ApplicationDirectoryMembershipCondition determines whether an ApplicationDirectory Directory property contains the assembly URL evidence path. For example, if the ApplicationDirectory is C:\app1, then assemblies with URL evidence such as C:\app1, C:\app1\main.aspx, C:\app1\folder1, or C:\app1\folder1\main1.aspx match this membership condition. Code not in the C:\app1 directory, or one of its subdirectories, fails this membership condition test.
Code without either ApplicationDirectory or Url evidence always fails this membership condition test.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: Mscorlib (in Mscorlib.dll)