Share via


Thread.Id Property

Definition

Returns the identifier of this Thread.

public virtual long Id { [Android.Runtime.Register("getId", "()J", "GetGetIdHandler")] get; }
[<get: Android.Runtime.Register("getId", "()J", "GetGetIdHandler")>]
member this.Id : int64

Property Value

this thread's ID.

Attributes

Remarks

Returns the identifier of this Thread. The thread ID is a positive long number generated when this thread was created. The thread ID is unique and remains unchanged during its lifetime. When a thread is terminated, this thread ID may be reused.

Added in 1.5.

Java documentation for java.lang.Thread.getId().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to