System.Net.WebPermission.Copy Method

Creates a copy of a System.Net.WebPermission.

Syntax

public override System.Security.IPermission Copy ()

Returns

A new instance of the System.Net.WebPermission class that has the same values as the original.

Remarks

The System.Security.IPermission returned by this method represents the same access to resources as the original System.Net.WebPermission. 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