Share via


MediaCenter.IsForegroundApplication Property

Gets a value that indicates whether the calling HTML application is the current foreground application in the Windows Media Center shell.

Note   This property has been deprecated.

Syntax

  MediaCenter.IsForegroundApplication

Remarks

This property lets the calling application determine when the user has left the application and started playing media from within a Windows Media Center experience. This property returns true if the current application is in the foreground or if the current application owns the currently playing media. If neither of these conditions is met, it will throw an exception. It will never return false.

Return Value

A Boolean that is true if the entry point of the calling application is the current foreground application. A call to the property when the application is not in the foreground will return an exception.

Requirements

Platform: HTML application hosted within Windows XP Media Center Edition 2005 through Windows Vista

See Also