The CreatePermission method of the SharePointPermissionAttribute class creates and returns a new SharePointPermission object.
System.Security.IPermission A SharePointPermission that corresponds to this attribute.
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.
Platforms: Microsoft Windows Server 2003
Security: Code Access Security