SPSafeThread.Execute 方法
这种方法使用后台线程用来管理未处理的异常,并防止进程变得没有响应或已锁定。
命名空间: Microsoft.SharePoint.Utilities
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Shared Sub Execute ( _
codeToRun As SPSafeThread.CodeToRun _
)
用法
Dim codeToRun As SPSafeThread.CodeToRunSPSafeThread.Execute(codeToRun)
public static void Execute(
SPSafeThread.CodeToRun codeToRun
)
参数
codeToRun
类型:Microsoft.SharePoint.Utilities.SPSafeThread.CodeToRun要包装线程安全环境中运行的代码。