NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

CodeAccessPermission.Copy

When implemented by a subclass, this method creates and returns an identical copy of the current permission object.

[Visual Basic]
MustOverride Public Function Copy() As IPermission
[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.

Remarks

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

Notes to Implementers: Each non-abstract subclass of the CodeAccessPermission class must implement Copy, including the code access permissions supplied by the NGWS runtime. If you are implementing your own code access permission class, you must implement this method.

See Also

CodeAccessPermission Class | CodeAccessPermission Members | System.Security Namespace