System.Threading.Thread(.CurrentThread.ThreadIdなど)はWinRTから削除されました。 Windows 8で現在のスレッドID(デバッグとログ用)を取得することは可能ですか?バックルーツへC#でWindows 8の現在のスレッドIDを取得
12
A
答えて
27
WindowsストアアプリケーションでサポートされているEnvironment.CurrentManagedThreadId
を参照してください。
Windowsストア用の.NETでサポートされている
をアプリ:スレッドクラスはUWPでサポートされていないWindowsの8
0
:
GetCurrentThreadId functionRetrieves the thread identifier of the calling thread.
WinBase.hのWindows XP、Windows Server 2003では、Windows Vistaでは、Windows 7、Windows Server 2008、およびWindows Server 2008 R2の(上のWindowsが含まれています。 h); Windows 8およびWindows Server 2012のProcessthreadsapi.h
、タスクは、利用可能な私がするために、タスクにキャストすることができますこれを使って? – DemetrioProgramerOsorio
いいえ、スレッドとタスクは異なる獣です。 –