Bagikan melalui


ProcessThread.PriorityLevel Properti

Definisi

Mendapatkan atau mengatur tingkat prioritas utas.

public:
 property System::Diagnostics::ThreadPriorityLevel PriorityLevel { System::Diagnostics::ThreadPriorityLevel get(); void set(System::Diagnostics::ThreadPriorityLevel value); };
public System.Diagnostics.ThreadPriorityLevel PriorityLevel { get; [System.Runtime.Versioning.SupportedOSPlatform("windows")] set; }
public System.Diagnostics.ThreadPriorityLevel PriorityLevel { [System.Runtime.Versioning.SupportedOSPlatform("windows")] [System.Runtime.Versioning.SupportedOSPlatform("linux")] [System.Runtime.Versioning.SupportedOSPlatform("freebsd")] get; [System.Runtime.Versioning.SupportedOSPlatform("windows")] set; }
public System.Diagnostics.ThreadPriorityLevel PriorityLevel { get; set; }
[<set: System.Runtime.Versioning.SupportedOSPlatform("windows")>]
member this.PriorityLevel : System.Diagnostics.ThreadPriorityLevel with get, set
[<set: System.Runtime.Versioning.SupportedOSPlatform("windows")>]
[<get: System.Runtime.Versioning.SupportedOSPlatform("windows")>]
[<get: System.Runtime.Versioning.SupportedOSPlatform("linux")>]
[<get: System.Runtime.Versioning.SupportedOSPlatform("freebsd")>]
member this.PriorityLevel : System.Diagnostics.ThreadPriorityLevel with get, set
member this.PriorityLevel : System.Diagnostics.ThreadPriorityLevel with get, set
Public Property PriorityLevel As ThreadPriorityLevel

Nilai Properti

Salah ThreadPriorityLevel satu nilai, menentukan rentang yang mengikat prioritas utas.

Atribut

Pengecualian

Informasi tingkat prioritas utas tidak dapat diambil.

-atau-

Tingkat prioritas utas tidak dapat diatur.

Prosesnya ada di komputer jarak jauh.

Keterangan

Tingkat prioritas bukan nilai tunggal, melainkan rentang nilai. Sistem operasi menghitung prioritas dasar utas dengan menggunakan proses PriorityClass untuk memilih nilai dari rentang yang ditentukan dalam PriorityLevel properti .

Berlaku untuk

Lihat juga