NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Thread.Priority

Gets or Sets the priority of a thread.

[Visual Basic]
Public Property Priority As ThreadPriority
[C#]
public ThreadPriority Priority {get; set;}
[C++]
public: __property ThreadPriority get_Priority();
public: __property void set_Priority(ThreadPriority);
[JScript]
public function get Priority() : ThreadPriority;
public function set Priority(ThreadPriority);

Property Value

One of the ThreadPriority values. The default value is Normal.

Exceptions

Exception Type Condition
ThreadStateException The thread is dead.
ArgumentException Assigned value is not one of the valid thread priority constants.

See Also

Thread Class | Thread Members | System.Threading Namespace | ThreadPriority