PnrpPermission::Copy Method ()

 

Creates and returns an identical copy of the current PnrpPermission.

Namespace:   System.Net.PeerToPeer
Assembly:  System.Net (in System.Net.dll)

public:
virtual IPermission^ Copy() override

Return Value

Type: System.Security::IPermission^

An object with an IPermission interface, whose instance contains a copy of the current instance of PnrpPermission.

Exception Condition
ArgumentException
  • The parameter is not a valid PnrpPermission element.

  • The parameter's version number is not supported.

ArgumentNullException

The parameter is a null reference (Nothing in Visual Basic).

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

Instances of this type have two permission states: they either have no access to the resource(s) protected by the permission, or they have unrestricted full access to those resources.

.NET Framework
Available since 3.5
Return to top
Show: