This documentation is archived and is not being maintained.

AppDomain.GetCurrentThreadId Method

Gets the current thread identifier.

[Visual Basic]
Public Shared Function GetCurrentThreadId() As Integer
public static int GetCurrentThreadId();
public: static int GetCurrentThreadId();
public static function GetCurrentThreadId() : int;

Return Value

A 32-bit signed integer that is the identifier of the current thread.


Exception Type Condition
SecurityException The caller does not have the correct permissions. See the permissions section.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

AppDomain Class | AppDomain Members | System Namespace | Int32