Aracılığıyla paylaş


Thread.Priority Property

Definition

Returns this thread's priority. -or- Changes the priority of this thread.

public int Priority { [Android.Runtime.Register("getPriority", "()I", "")] get; [Android.Runtime.Register("setPriority", "(I)V", "")] set; }
[<get: Android.Runtime.Register("getPriority", "()I", "")>]
[<set: Android.Runtime.Register("setPriority", "(I)V", "")>]
member this.Priority : int with get, set

Property Value

this thread's priority.

Attributes

Exceptions

Remarks

Property getter documentation:

Returns this thread's priority.

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

Property setter documentation:

Changes the priority of this thread.

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

Otherwise, the priority of this thread is set to the smaller of the specified newPriority and the maximum permitted priority of the thread's thread group.

Java documentation for java.lang.Thread.setPriority(int).

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