environment properties
5. Dll Name & Code Line
thanks!
thanks!
You will need to Import the following namespaces:
System.Threading
System.Diagnostics
System.Reflection
1. AppDomain.CurrentDomain.FriendlyName
2. Thread.CurrentThread.Name
3. Process.GetCurrentProcess().Id
4. Process.GetCurrentProcess().ProcessName
5. [Assembly].GetExecutingAssembly().FullName
Regards,
Vikram
For getting the Win32ThreadId, you can use: AppDomain.GetCurrentThreadId()
However, Microsoft warns users against using this, since they dont promise that it will never change. CLR threads are "virtualized" and can in theory change the physical OS thread they are running on at any time. In practice, in the current
version, it will never happen but in a future version it may.
Regards,
Vikram
thanks
At the moment as of v1.1, both the IDs will be same but Microsoft claims that they may change this. And in future version at runtime, the Win32 Thread Id can change during execution of a program.
Regards,
Vikram