共用方式為


SPThreadPool.QueueUserWorkItemWithImpersonation method

藉由使用遠端使用者的身分佇列執行的方法。

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
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
    Type: System.Object

    物件,包含要方法所使用的資料。

傳回值

Type: System.Boolean
true如果方法成功地在佇列中。否則, false。

請參閱

參照

SPThreadPool class

SPThreadPool members

Microsoft.SharePoint.Utilities namespace