System.Net.SocketPermission.Copy Method

Creates a copy of a System.Net.SocketPermission instance.

Syntax

public override System.Security.IPermission Copy ()

Returns

A new instance of the System.Net.SocketPermission class that is a copy of the current instance.

Remarks

The object returned by this method represents the same level of access as the current instance. This method overrides System.Security.CodeAccessPermission.Copy and is implemented to support the System.Security.IPermission interface.

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0