[ Team LiB ] Previous Section Next Section

SocketPermissionAttributeECMA 1.0, serializable

System.Net (system.dll)sealed class

This attribute is used to declare in metadata that the attributed method or class requires SocketPermission of the declared form.

public sealed class SocketPermissionAttribute : System.Security.Permissions.CodeAccessSecurityAttribute {
// Public Constructors
   public SocketPermissionAttribute(System.Security.Permissions.SecurityAction action);
// Public Instance Properties
   public string Access{set; get; }
   public string Host{set; get; }
   public string Port{set; get; }
   public string Transport{set; get; }
// Public Instance Methods
   public override IPermission CreatePermission( );    
// overrides System.Security.Permissions.SecurityAttribute
}

Hierarchy

System.Object System.Attribute System.Security.Permissions.SecurityAttribute System.Security.Permissions.CodeAccessSecurityAttribute SocketPermissionAttribute

Valid On

Assembly, Class, Struct, Constructor, Method

    [ Team LiB ] Previous Section Next Section