Partager via


SharePointPermission(System.Security.Permissions.PermissionState) Constructor

The SharePointPermission constructor initializes a new instance of the SharePointPermission 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 SharePoint server resources.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security