Mono Class Library: System.Threading.Thread Overview | Members

System.Threading.Thread.Name Property

Gets or sets the name of the thread.

public string Name { set; get; }

Value

A string containing the name of the thread, or null if no name was set.

Exceptions

TypeReason
InvalidOperationExceptionA set operation was requested, and the Name property has already been set.

Remarks

This property is write-once. Once this property has been set to a non-null value, attempts to set this property to a new value cause an exception.

Requirements

Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0