Share via


WebPartPermissionAttribute(System.Security.Permissions.SecurityAction) Constructor

The WebPartPermissionAttribute constructor initializes a new instance of the WebPartPermissionAttribute class with the specified SecurityAction.

Parameters

action    One of the SecurityAction values.

Exceptions

Exception Type Condition
ArgumentException The action parameter is not a valid SecurityAction.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security