0
我有一段代碼,並希望將這些部分放在單獨的線程中。在AddressOf委託中傳遞參數/參數VB
Dim objThreadedReq = From reqThreaded In objRequestList
Where reqThreaded.IsThreaded = True
Dim trThreadedRequests As Thread = New Thread(New ThreadStart(AddressOf PoolThreadedRequests))
trThreadedRequests.Start()
我創建了一個功能PoolThreadedRequests(objRequestList作爲RequestList)
如何傳遞objThreadedReq集合在我的線程的功能?
看看[ParameterizedThreadStart代表(http://msdn.microsoft.com/en-us/library/system.threading .parameterizedthreadstart(v = vs.100).aspx) – Tim
是的,它完成.. thx。 –