다음을 통해 공유


SharePointPermissionAttribute.CreatePermission Method

Creates and returns a new SharePointPermission object.

Namespace:  Microsoft.SharePoint.Security
Assembly:  Microsoft.SharePoint.Security (in Microsoft.SharePoint.Security.dll)

Syntax

'Declaration
Public Overrides Function CreatePermission As IPermission
'Usage
Dim instance As SharePointPermissionAttribute
Dim returnValue As IPermission

returnValue = instance.CreatePermission()
public override IPermission CreatePermission()

Return Value

Type: System.Security.IPermission
System.Security.IPermission A SharePointPermission that corresponds to this attribute.

Remarks

This method should only be called by the security system, never by application code.

At compile time, attributes convert security declarations to a serialized form in metadata. Declarative security data in metadata is created from the permission returned by the method that corresponds to this attribute.

See Also

Reference

SharePointPermissionAttribute Class

SharePointPermissionAttribute Members

Microsoft.SharePoint.Security Namespace