共用方式為


SPSafeThread.Execute method

這種方法使用背景執行緒用來管理未處理例外狀況,並防止處理程序變得沒有回應或鎖定。

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

Syntax

'宣告
Public Shared Sub Execute ( _
    codeToRun As SPSafeThread.CodeToRun _
)
'用途
Dim codeToRun As SPSafeThread.CodeToRunSPSafeThread.Execute(codeToRun)
public static void Execute(
    SPSafeThread.CodeToRun codeToRun
)

參數

請參閱

參照

SPSafeThread class

SPSafeThread members

Microsoft.SharePoint.Utilities namespace