SPSafeThread.CodeToRun Delegate
Delegate for SPSafeThread used to run background threads to handle any exception that might be thrown. An exception caught is logged and the thread is discontinued without affecting the calling process.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Delegate Sub CodeToRun
'Usage
Dim instance As New CodeToRun(AddressOf HandlerMethod)
public delegate void CodeToRun()