Bewerken

Delen via


PnrpPermission.Copy Method

Definition

Creates and returns an identical copy of the current PnrpPermission.

public:
 override System::Security::IPermission ^ Copy();
public override System.Security.IPermission Copy ();
override this.Copy : unit -> System.Security.IPermission
Public Overrides Function Copy () As IPermission

Returns

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

Exceptions

The parameter is not a valid PnrpPermission element.

-or-

The parameter's version number is not supported.

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

Remarks

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.

Applies to

See also