[ Team LiB ] Previous Section Next Section

ZoneIdentityPermissionserializable

System.Security.Permissions (mscorlib.dll)sealed class
public sealed class ZoneIdentityPermission : System.Security.CodeAccessPermission : IBuiltInPermission {
// Public Constructors
   public ZoneIdentityPermission(PermissionState state);
   public ZoneIdentityPermission(System.Security.SecurityZone zone);
// Public Instance Properties
   public SecurityZone SecurityZone{set; get; }
// Public Instance Methods
   public override IPermission Copy(  );        
// overrides CodeAccessPermission
   public override void FromXml(System.Security.SecurityElement esd);
 // overrides CodeAccessPermission
   public override IPermission Intersect(System.Security.IPermission target);
 // overrides CodeAccessPermission
   public override bool IsSubsetOf(System.Security.IPermission target);
 // overrides CodeAccessPermission
   public override SecurityElement ToXml(  );   
// overrides CodeAccessPermission
   public override IPermission Union(System.Security.IPermission target);
 // overrides CodeAccessPermission
}

This identity permission class represents the System.Security.Policy.Zone evidence presented by an assembly or application domain to the runtime. The ZoneIdentityPermission class allows code to invoke imperative security statements based on the zone from which code originated. For example, code could ensure that only assemblies run from the local intranet have access to methods that manipulate data in an important database.

To create a ZoneIdentityPermission object representing a specific zone, pass a member of the System.Security.SecurityZone enumeration to object constructor. The System.Security.SecurityZone enumeration contains values that represent the standard Internet Explorer security zones. To get or set the security zone represented by a ZoneIdentityPermission object, use its SecurityZone property.

Hierarchy

System.Object System.Security.CodeAccessPermission(System.Security.IPermission, System.Security.ISecurityEncodable, System.Security.IStackWalk) ZoneIdentityPermission(IBuiltInPermission)

    [ Team LiB ] Previous Section Next Section