System.Net.UnsafeNclNativeMethods.GetCurrentThreadId C# (CSharp) Метод

GetCurrentThreadId() приватный Метод

private GetCurrentThreadId ( ) : uint
Результат uint
        internal static extern uint GetCurrentThreadId();

Usage Example

Пример #1
0
        internal static uint GetThreadId()
        {
            uint threadId = UnsafeNclNativeMethods.GetCurrentThreadId();

            if (threadId == 0)
            {
                threadId = (uint)Thread.CurrentThread.GetHashCode();
            }
            return(threadId);
        }
All Usage Examples Of System.Net.UnsafeNclNativeMethods::GetCurrentThreadId