Share via


MediaCenter.Context Property

Gets an application-defined string that is associated with an application entry point.

Note   This property has been deprecated.

Syntax

  MediaCenter.Context

Property Value

A read-only String that identifies the context for the event.

Remarks

When the user selects an entry point to an application, the application can query this property to retrieve the application-defined context string for the entry point. You specify a context string when you register your application and its entry points; use the context attribute of the entrypoint element.

When an AutoPlay event occurs, this property contains the letter of the disk drive where the AutoPlay event originated. For more information about handling AutoPlay events, see Allowing Applications to Handle AutoPlay Events.

Note that the context string does not contain the drive letter when a camera or other synced device generates the AutoPlay event.

Requirements

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

See Also