Condividi tramite


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

IPermission.Copy()

Remarks

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

See Also

Reference

WebPartPermission Class

WebPartPermission Members

Microsoft.SharePoint.Security Namespace