O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

DnsPermission

Synopsis

This class controls access to DNS services. The constructor accepts one argument, either System.Security.Permissions.PermissionState.None (no access to DNS services) or System.Security.Permissions.PermissionState.Unrestricted (all access).

This permission is Demand()ed by all of the methods on the Dns class.

public sealed class DnsPermission : System.Security.CodeAccessPermission,
                                                   System.Security.Permissions.IUnrestrictedPermission {
// Public Constructors
   public method DnsPermission(
        System.Security.Permissions.PermissionState state);  
// Public Instance Methods
   public override method IPermission Copy();                    // overrides CodeAccessPermission
   public override method void FromXml(                         // overrides CodeAccessPermission
        System.Security.SecurityElement securityElement);  
   public override method IPermission Intersect(                // overrides CodeAccessPermission
        System.Security.IPermission target);  
   public override method bool IsSubsetOf(                      // overrides CodeAccessPermission
        System.Security.IPermission target);  
   public method bool IsUnrestricted();                          // implements IUnrestrictedPermission
   public override method SecurityElement ToXml();               // overrides CodeAccessPermission
   public override method IPermission Union(                    // overrides CodeAccessPermission
        System.Security.IPermission target);  
}

Hierarchy

System.Object→System.Security.CodeAccessPermission(System.Security.IPermission, System.Security.ISecurityEncodable, System.Security.IStackWalk)→DnsPermission(System.Security.Permissions.IUnrestrictedPermission) ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required