Export (0) Print
Expand All

CodeAccessPermission.Copy Method

When implemented by a derived class, creates and returns an identical copy of the current permission object.

[Visual Basic]
Public MustOverride Function Copy() As IPermission Implements _
   IPermission.Copy
[C#]
public abstract IPermission Copy();
[C++]
public: virtual IPermission* Copy() = 0;
[JScript]
public abstract function Copy() : IPermission;

Return Value

A copy of the current permission object.

Implements

IPermission.Copy

Remarks

A copy of a permission object represents the same access to resources as the original permission object.

Notes to Inheritors:  You must implement this method in a derived class.

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

CodeAccessPermission Class | CodeAccessPermission Members | System.Security Namespace

Show:
© 2015 Microsoft