WebPartPermission(System.Security.Permissions.PermissionState) Constructor
The WebPartPermission constructor initializes a new instance of the WebPartPermission class.
Parameters
state One of the System.Security.Permissions.PermissionState values.
Exceptions
Exception Type | Condition |
---|---|
ArgumentException | The state parameter is not a System.Security.Permissions.PermissionState value. |
Remarks
The constructor creates permissions with either fully restricted (None) or Unrestricted access to Web Part resources.
Requirements
Platforms: Microsoft Windows Server 2003
Security: Code Access Security