vb.net 线程 传递多参数 通过 对象数组
vb.net 线程 传递多参数 通过 对象数组
Dim t As Threading.Thread = Nothing
Dim ArgsObject3() As Object = New Object() {objWordType, WordPathName, HtmlPathName}
If appName = "Word" Then
t = New Threading.Thread(AddressOf MsWord2Html)
ElseIf appName = "KET" Then
t = New Threading.Thread(AddressOf KWps2Html)
End If
If t IsNot Nothing Then t.Start(ArgsObject3)
通过 object 数组 传递参数, 在函数开始时,通过 dim xxx as string = argsObject3(1) 的方式获取参数