Partilhar via


WebPartPermission Class

NOTE: This API is now obsolete.

Represents a custom permission that controls the ability to access Web Part resources.

Inheritance Hierarchy

System.Object
  System.Security.CodeAccessPermission
    Microsoft.SharePoint.Security.WebPartPermission

Namespace:  Microsoft.SharePoint.Security
Assembly:  Microsoft.SharePoint.Security (in Microsoft.SharePoint.Security.dll)

Syntax

'Declaration
<SerializableAttribute> _
<ObsoleteAttribute("Web Part permissions are obsolete and no longer required")> _
Public NotInheritable Class WebPartPermission _
    Inherits CodeAccessPermission _
    Implements IUnrestrictedPermission
'Usage
Dim instance As WebPartPermission
[SerializableAttribute]
[ObsoleteAttribute("Web Part permissions are obsolete and no longer required")]
public sealed class WebPartPermission : CodeAccessPermission, 
    IUnrestrictedPermission

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

WebPartPermission Members

Microsoft.SharePoint.Security Namespace