Determining thread context

G

Guest

Does anyone know how I can determine the thread context in VB.NET? I have an
elapsed timer event that I tie to the application context via
SynchronizingObject. But code I run in the elapsed event routine seems to be
in a different context. Is there a way I can get the thread ID? Thanks.

-Mike
 
G

Guest

Does anyone know how I can determine the thread context in VB.NET?

..net thread object of the currently running thread
System.Threading.Thread.CurrentThread
integer win32 thread id
AppDomain.GetCurrentThreadId()
 
G

Guest

Thanks!

AMercer said:
.net thread object of the currently running thread
System.Threading.Thread.CurrentThread
integer win32 thread id
AppDomain.GetCurrentThreadId()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top