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
)

参数

另请参阅

引用

SPSafeThread 类

SPSafeThread 成员

Microsoft.SharePoint.Utilities 命名空间