Share via


SPSafeThread.Execute method

This method is a is used with background threads to manage unhandled exceptions and prevent the process from becoming unresponsive or locked.

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

Syntax

'Declaration
Public Shared Sub Execute ( _
    codeToRun As SPSafeThread.CodeToRun _
)
'Usage
Dim codeToRun As SPSafeThread.CodeToRunSPSafeThread.Execute(codeToRun)
public static void Execute(
    SPSafeThread.CodeToRun codeToRun
)

Parameters

See also

Reference

SPSafeThread class

SPSafeThread members

Microsoft.SharePoint.Utilities namespace