Java.Lang.Thread.Priority Property
Returns the priority of the Thread.

Syntax

[get: Android.Runtime.Register("getPriority", "()I", "GetGetPriorityHandler")]
[set: Android.Runtime.Register("setPriority", "(I)V", "GetSetPriority_IHandler")]
public int Priority { get; set; }

Value

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalArgumentException- if the new priority is greater than Thread.MaxPriority or less than Thread.MinPriority
Java.Lang.IllegalArgumentException- if the new priority is greater than Thread.MaxPriority or less than Thread.MinPriority
Java.Lang.IllegalArgumentException- if the new priority is greater than Thread.MaxPriority or less than Thread.MinPriority
Java.Lang.IllegalArgumentException- if the new priority is greater than Thread.MaxPriority or less than Thread.MinPriority
Java.Lang.IllegalArgumentException- if the new priority is greater than Thread.MaxPriority or less than Thread.MinPriority

Remarks

Get method documentation [Android Documentation]

Returns the priority of the Thread.

Set method documentation [Android Documentation]

Sets the priority of this thread. If the requested priority is greater than the parent thread group's ThreadGroup.MaxPriority, the group's maximum priority will be used instead.

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1