Export (0) Print
Expand All

AppDomain.GetCurrentThreadId Method

Gets the current thread identifier.

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

Return Value

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

Exceptions

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

Requirements

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

Show:
© 2014 Microsoft