问题描述
你好,
我想创建一个名为PlayerSearch的新后台工作者,为子SearchPlayers(Search As String)添加一个处理程序,然后运行BackgroundWorker的。然后它做PlayerSearch.RunWorkerAsync(Rixterz)。问题是你不能使用AddressOf的参数,所以我不能将SearchPlayers分配给PlayerSearch并使用搜索参数。有没有办法做到这一点?如果是这样,我怎么能把多个参数传递给它?
-Rixterz
Hello,
I'd like to create a new backgroundworker called PlayerSearch, add a handler to the sub SearchPlayers(Search As String), and then run the backgroundworker. Then it does PlayerSearch.RunWorkerAsync("Rixterz"). The problem is that you cannot use parameters with AddressOf, so I cannot assign SearchPlayers to PlayerSearch and use the "Search" parameter. Is there a way to do this? If so, how could I pass multiple parameters to it?
-Rixterz
推荐答案
这篇关于如何将参数传递给新的backgroundworker的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!