Gets the base priority of the associated process.
Assembly: System (in System.dll)
The platform is Windows 98 or Windows Millennium Edition (Windows Me); set the ProcessStartInfo.UseShellExecute property to false to access this property on Windows 98 and Windows Me.
The process has exited.
The process has not started, so there is no process ID.
The of the process is the starting priority for threads created within the associated process. You can view information about the base priority through the System Monitor's Priority Base counter.
Based on the time elapsed or other boosts, the operating system can change the base priority when a process should be placed ahead of others.
The property lets you view the starting priority assigned to a process. However, because it is read-only, you cannot use the to set the priority of the process. To change the priority, use the PriorityClass property. The is viewable using the System Monitor, while the PriorityClass is not. Both the and the PriorityClass can be viewed programmatically. The following table shows the relationship between values and PriorityClass values.
Windows 98, Windows Millennium Edition Platform Note: This property is not available on this platform if you started the process with ProcessStartInfo.UseShellExecute set to true.
The following example starts an instance of Notepad. The example then retrieves and displays various properties of the associated process. The example detects when the process exits, and displays the process's exit code.
for full trust for the immediate caller. This member cannot be used by partially trusted code.