thread_object.Name Property

Returns a String value indicating the name of the thread associated with a Thread object.

name_string = thread_object.Name

Prerequisites

None

Parameters

None

Remarks

This property returns a String containing the thread name as originally established when the Thread object was created by its constructor.

Examples

Dim thread1 As New Thread("Test", , "Thread1")   ' Create thread object
Console.Writeline ("Created thread: " & thread1.Name)
' Displays "Created thread: Thread1"

See Also

Thread Class | Thread Constructor |thread_object.Project | thread_object.StartProcedure