SPC056001: Do not instantiate SPList in Receiver

Do not instantiate an SPList object within an event receiver.

TypeName: DoNotInstantiateSPListInEventReceiver
CheckId: SPC056001
Severity: Warning
Type: AssemblyFileReference

Do not instantiate an object of type 'Microsoft.SharePoint.SPList' in EventReceiver. Best practise is to get these objects from the current context.


comments powered by Disqus