SocketPermission that allows the code to open a TCP connection to the specified host and port : SocketPermission : Network C# Examples


C# Examples » Network » SocketPermission »

 

SocketPermission that allows the code to open a TCP connection to the specified host and port









    
using  System;
using  System.Net;
using  System.Security.Permissions;

[assembly:SocketPermission(SecurityAction.RequestMinimum,  Access  =  "Connect",  Host  =  "www.navioo.com",  Port  =  "9999",  Transport  =  "Tcp")]
class  MainClass
{
        public  static  void  Main()
        {                
        }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Network
» SocketPermission