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
)
參數
codeToRun
Type: Microsoft.SharePoint.Utilities.SPSafeThread.CodeToRun要包裝在執行緒安全的環境並執行程式碼。