Thread.Priority Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- if the new priority is greater than MaxPriority or less than MinPriority
- if the new priority is greater than MaxPriority or less than MinPriority
- if the new priority is greater than MaxPriority or less than MinPriority
- if the new priority is greater than MaxPriority or less than MinPriority
- if the new priority is greater than MaxPriority or less than MinPriority
- if the new priority is greater than MaxPriority or less than MinPriority
Remarks
Property getter documentation:
Java documentation for java.lang.Thread.getPriority().
Property setter documentation:
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.