Export (0) Print
Expand All

ApplicationNotForegroundException Class

Contains information about an exception that was raised because a page called a Windows Media Center API element at an inappropriate time. By throwing this exception, Windows Media Center ensures that only the page that starts playing media content can affect the media experience after the user has left the page.

Syntax

public class ApplicationNotForegroundException : System.InvalidOperationException

Public Instance Constructors

ConstructorDescription
ApplicationNotForegroundException()Initializes an instance of the ApplicationNotForegroundException class.
ApplicationNotForegroundException(string)Initializes an instance of the ApplicationNotForegroundException class.
ApplicationNotForegroundException(string, Exception)Initializes an instance of the ApplicationNotForegroundException class.

Protected Instance Constructors

ConstructorDescription
ApplicationNotForegroundException(SerializationInfo, StreamingContext)Initializes an instance of the ApplicationNotForegroundException class.

Remarks

A page can call Windows Media Center API elements only when one or both of the following conditions are true:

  • The page is currently being displayed in Windows Media Center.
  • The page invoked the currently playing media content, even if the user is watching full-screen video or used the Windows Media Center (green) button on the remote control to navigate away from the application.

See Also

Show:
© 2014 Microsoft