SocketPermissionECMA 1.0, serializable

System.Net (system.dll)sealed class

This permission controls whether code can make or accept socket connections for a given NetworkAccess, TransportType, hostname, and port number (see the four-argument form of the constructor). The static field AllPorts is a constant that represents permission to all ports and can be used as the port argument to the constructor.

public sealed class SocketPermission : System.Security.CodeAccessPermission, 
        System.Security.Permissions.IUnrestrictedPermission {
// Public Constructors
   public SocketPermission(NetworkAccess access, TransportType transport, string hostName, 
        int portNumber);
   public SocketPermission(System.Security.Permissions.PermissionState state);
// Public Static Fields
   public const int AllPorts;            
// =-1
// Public Instance Properties
   public IEnumerator AcceptList{get; }
   public IEnumerator ConnectList{get; }
// Public Instance Methods
   public void AddPermission(NetworkAccess access, TransportType transport,string hostName, int portNumber);
   public override IPermission Copy( );   
// overrides CodeAccessPermission
   public override void FromXml(System.Security.SecurityElement securityElement)
// overrides CodeAccessPermission
   public override IPermission Intersect(System.Security.IPermission target)
// overrides CodeAccessPermission
   public override bool IsSubsetOf(System.Security.IPermission target)
// overrides CodeAccessPermission
   public bool IsUnrestricted( );         
// implements IUnrestrictedPermission
   public override SecurityElement ToXml( );           
// overrides CodeAccessPermission
   public override IPermission Union(System.Security.IPermission target)
// overrides CodeAccessPermission


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

    Part II: Programming with the .NET Framework
    Part IV: API Quick Reference
    Chapter 26. System