Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]
Returns the current contextual priority.
![]() |
Syntax
var retval = MSApp.getCurrentPriority();
Parameters
This method has no parameters.
Return value
Type: DOMString
The return value is one of the strings MSApp.HIGH, MSApp.NORMAL, or MSApp.IDLE.
Remarks
This method returns the current contextual priority (see MSApp Constants), which can be changed via execAtPriority and execAsyncAtPriority.
Examples
if (MSApp.getCurrentPriority() === MSApp.IDLE) {
// YOUR CODE HERE
}
.png)