Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ApplicationDirectoryMembershipCondition Class

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.

System.Object
   System.Security.Policy.ApplicationDirectoryMembershipCondition

[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

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Remarks

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.

Requirements

Namespace: System.Security.Policy

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)

See Also

ApplicationDirectoryMembershipCondition Members | System.Security.Policy Namespace

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft