SharePointPermissionAttribute Constructor
Initializes a new instance of the SharePointPermissionAttribute class with the specified SecurityAction.
Namespace: Microsoft.SharePoint.Security
Assembly: Microsoft.SharePoint.Security (in Microsoft.SharePoint.Security.dll)
Syntax
'Declaration
Public Sub New ( _
action As SecurityAction _
)
'Usage
Dim action As SecurityAction
Dim instance As New SharePointPermissionAttribute(action)
public SharePointPermissionAttribute(
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
SharePointPermissionAttribute Class