get_ManagedThreadId()

Thread::get_ManagedThreadId() const method

Gets identifier of thread. Can be got from OS, but if OS thread identifier exceeds int limits, ids of threads can intersect.

int System::Threading::Thread::get_ManagedThreadId() const

Return Value

Pseudo-unique thread identifier.

See Also