SPSafeThread.CodeToRun delegate
委派的SPSafeThread用來執行背景執行緒來處理可能會擲回任何例外狀況。攔截到例外狀況會登載,並且執行緒已經停產的產品而不會影響呼叫的處理程序。
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Delegate Sub CodeToRun
'用途
Dim instance As New CodeToRun(AddressOf HandlerMethod)
public delegate void CodeToRun()