WebPart.Permissions Property

NOTE: This API is now obsolete.

Gets the properties of a Web Part that can be modified currently.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<ObsoleteAttribute("Use SPWebPartManager.GetPermissions instead.")> _
Public ReadOnly Property Permissions As Permissions
    Get
'Usage
Dim instance As WebPart
Dim value As Permissions

value = instance.Permissions
[ObsoleteAttribute("Use SPWebPartManager.GetPermissions instead.")]
public Permissions Permissions { get; }

Property Value

Type: Microsoft.SharePoint.WebPartPages.Permissions
A Permissions enumeration value.

Remarks

The values of the EffectiveFrameType, ContainerWidth, and Permissions properties can change just before the Render event in Microsoft ASP.NET is called. This is because the ZoneID property might have changed, which affects the values of these properties. These properties are guaranteed to have their final values, taking into account any needed zone changes, when the Web Part's RenderWebPart method is called.

See Also

Reference

WebPart Class

WebPart Members

Microsoft.SharePoint.WebPartPages Namespace