SPThreadPool.QueueUserWorkItemWithImpersonation 方法

通过使用远程用户的标识队列执行的方法。

命名空间:  Microsoft.SharePoint.Utilities
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Shared Function QueueUserWorkItemWithImpersonation ( _
    callback As WaitCallback, _
    state As Object _
) As Boolean
用法
Dim callback As WaitCallback
Dim state As Object
Dim returnValue As Boolean

returnValue = SPThreadPool.QueueUserWorkItemWithImpersonation(callback, _
    state)
public static bool QueueUserWorkItemWithImpersonation(
    WaitCallback callback,
    Object state
)

参数

  • state
    类型:System.Object

    一个对象,包含要使用的方法的数据。

返回值

类型:System.Boolean
true如果该方法成功地进行排队。否则为false。

另请参阅

引用

SPThreadPool 类

SPThreadPool 成员

Microsoft.SharePoint.Utilities 命名空间