MediaPlaybackItem.DurationLimit Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.