Export (0) Print
Expand All

SocketPermissionAttribute Constructor

Initializes a new instance of the SocketPermissionAttribute class with the specified SecurityAction value.

[Visual Basic]
Public Sub New( _
   ByVal action As SecurityAction _
)
[C#]
public SocketPermissionAttribute(
   SecurityAction action
);
[C++]
public: SocketPermissionAttribute(
   SecurityAction action
);
[JScript]
public function SocketPermissionAttribute(
   action : SecurityAction
);

Parameters

action
One of the SecurityAction values.

Exceptions

Exception Type Condition
ArgumentException action is not a valid SecurityAction value.

Remarks

The SecurityAction value passed to this constructor specifies the allowable SocketPermissionAttribute targets.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Common Language Infrastructure (CLI) Standard

See Also

SocketPermissionAttribute Class | SocketPermissionAttribute Members | System.Net Namespace

Show:
© 2015 Microsoft