다음을 통해 공유


getCurrentPriority method

[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.

Internet Explorer 10

 

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
} 

See also

MSApp

MSApp Constants