Sdílet prostřednictvím


Thread.Name Property

Definition

Returns this thread's name. -or- Changes the name of this thread to be equal to the argument name.

public string Name { [Android.Runtime.Register("getName", "()Ljava/lang/String;", "")] get; [Android.Runtime.Register("setName", "(Ljava/lang/String;)V", "")] set; }
[<get: Android.Runtime.Register("getName", "()Ljava/lang/String;", "")>]
[<set: Android.Runtime.Register("setName", "(Ljava/lang/String;)V", "")>]
member this.Name : string with get, set

Property Value

this thread's name.

Attributes

Remarks

Property getter documentation:

Returns this thread's name.

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

Property setter documentation:

Changes the name of this thread to be equal to the argument name.

First the checkAccess method of this thread is called with no arguments. This may result in throwing a SecurityException.

Java documentation for java.lang.Thread.setName(java.lang.String).

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

See also