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

WebPermission

Synopsis

This permission controls which connections an application can make or accept.

public sealed class WebPermission : System.Security.CodeAccessPermission, 
                                        System.Security.Permissions.IUnrestrictedPermission {
// Public Constructors
   public method WebPermission();  
   public method WebPermission(NetworkAccess access, 
        System.Text.RegularExpressions.Regex uriRegex);  
   public method WebPermission(NetworkAccess access, 
        string uriString);  
   public method WebPermission(
        System.Security.Permissions.PermissionState state);  
// Public Instance Properties
   public field IEnumerator AcceptList{get; } 
   public field IEnumerator ConnectList{get; } 
// Public Instance Methods
   public method void AddPermission(NetworkAccess access, 
        System.Text.RegularExpressions.Regex uriRegex);  
   public method void AddPermission(NetworkAccess access, 
        string uriString);  
   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 ...

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