Share via


Priority Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets or sets a value indicating the scheduling priority of a thread.

Namespace:  System.Threading
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public Property Priority As ThreadPriority
public ThreadPriority Priority { get; set; }
public:
property ThreadPriority Priority {
    ThreadPriority get ();
    void set (ThreadPriority value);
}
member Priority : ThreadPriority with get, set
function get Priority () : ThreadPriority
function set Priority (value : ThreadPriority)

Property Value

Type: System.Threading. . :: . .ThreadPriority
One of the ThreadPriority values. The default value is Normal.

Remarks

A thread can be assigned any one of the following priority values:

  • Highest

  • AboveNormal

  • Normal

  • BelowNormal

  • Lowest

Operating systems are not required to honor the priority of a thread.

.NET Framework Security

See Also

Reference

Thread Class

System.Threading Namespace