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
)
參數
callback
Type: System.Threading.WaitCallback**[T:System.Threading.][WaitCallback]**委派,表示要執行的方法。
state
Type: System.Object物件,包含要方法所使用的資料。
傳回值
Type: System.Boolean
true如果方法成功地在佇列中。否則, false。