NativeMethods.GetCurrentThreadId Method
Returns the thread identifier of the calling thread.
Namespace: Microsoft.VisualStudio
Assembly: Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)
Syntax
'Declaration
Public Shared Function GetCurrentThreadId As Integer
'Usage
Dim returnValue As Integer
returnValue = NativeMethods.GetCurrentThreadId()
public static int GetCurrentThreadId()
public:
static int GetCurrentThreadId()
public static function GetCurrentThreadId() : int
static member GetCurrentThreadId : unit -> int
Return Value
Type: System.Int32
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.