DataCue DataCue DataCue DataCue DataCue Class


Represents a data cue that can be included in a TimedMetadataTrack.

public : sealed class DataCue : IMediaCue
struct winrt::Windows::Media::Core::DataCue : IMediaCue
public sealed class DataCue : IMediaCue
Public NotInheritable Class DataCue Implements IMediaCue
var dataCue = new dataCue();

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


A DataCue can be added to a TimedMetadataTrack with the AddCue method. When the cue's start time is reached, the CueEntered event is raised and you can use the MediaCueEventArgs passed into the handler to get a copy of the DataCue. The Data property of DataCue is an IBuffer that can contain any type of data. If you want to display text when the cue is encountered, the TimedTextCue class is provided for this scenario.

Version history

Windows version SDK version Value added
1703 15063 Properties


DataCue() DataCue() DataCue() DataCue() DataCue()

Initializes a new instance of the DataCue class.


Data Data Data Data Data

Gets the data associated with the cue.

Duration Duration Duration Duration Duration

Gets or sets the duration of the cue.

Id Id Id Id Id

Gets the identifier for the data cue.

Properties Properties Properties Properties Properties

Gets the collection of custom properties associated with the data cue.

StartTime StartTime StartTime StartTime StartTime

Gets the start time of the cue.

See also