Delen via


MediaPlaybackItem.DurationLimit Property

Definition

Gets the maximum playback duration of the MediaPlaybackItem.

public:
 property IReference<TimeSpan> ^ DurationLimit { IReference<TimeSpan> ^ get(); };
IReference<TimeSpan> DurationLimit();
public System.Nullable<System.TimeSpan> DurationLimit { get; }
var iReference = mediaPlaybackItem.durationLimit;
Public ReadOnly Property DurationLimit As Nullable(Of TimeSpan)

Property Value

The maximum playback duration of the MediaPlaybackItem.

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)

Remarks

Set this value by using the MediaPlaybackItem(MediaSource, TimeSpan, TimeSpan) constructor to ensure that the MediaPlaybackItem will be played for no longer than the specified duration.

Applies to