WebPartPermissionAttribute Constructor
NOTE: This API is now obsolete.
Initializes a new instance of the WebPartPermissionAttribute class With the specified SecurityAction.
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 Sub New ( _
action As SecurityAction _
)
'Usage
Dim action As SecurityAction
Dim instance As New WebPartPermissionAttribute(action)
[ObsoleteAttribute("Web Part permissions are obsolete and no longer required")]
public WebPartPermissionAttribute(
SecurityAction action
)
Parameters
action
Type: System.Security.Permissions.SecurityActionOne of the SecurityAction values.
Remarks
Exceptions
Exception Type |
Condition |
---|---|
ArgumentException |
The action parameter is not a valid SecurityAction. |
See Also
Reference
WebPartPermissionAttribute Class