WebPartPermission.Copy Method
NOTE: This API is now obsolete.
Creates and returns an identical copy of the current permission object.
Namespace: Microsoft.SharePoint.Security
Assembly: Microsoft.SharePoint.Security (in Microsoft.SharePoint.Security.dll)
Syntax
'Declaration
<ObsoleteAttribute("Web Part permissions are obsolete and no longer required")> _
Public Overrides Function Copy As IPermission
'Usage
Dim instance As WebPartPermission
Dim returnValue As IPermission
returnValue = instance.Copy()
[ObsoleteAttribute("Web Part permissions are obsolete and no longer required")]
public override IPermission Copy()
Return Value
Type: System.Security.IPermission
System.Security.IPermission A copy of the current permission object.
Implements
Remarks
A copy of a permission object represents the same access to resources as the original permission object.