Dela via


MediaPlaybackItem.IsDisabledInPlaybackList Property

Definition

Gets or sets a value that specifies whether a MediaPlaybackItem is disabled in a MediaPlaybackList.

public:
 property bool IsDisabledInPlaybackList { bool get(); void set(bool value); };
bool IsDisabledInPlaybackList();

void IsDisabledInPlaybackList(bool value);
public bool IsDisabledInPlaybackList { get; set; }
var boolean = mediaPlaybackItem.isDisabledInPlaybackList;
mediaPlaybackItem.isDisabledInPlaybackList = boolean;
Public Property IsDisabledInPlaybackList As Boolean

Property Value

Boolean

bool

True if the media playback item is disabled in the playback list; otherwise, false.

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Remarks

A example scenario for using this property is when network connectivity is lost, your app can check the TotalDownloadProgress property to see which items in the playback list have completed downloading. For items that have not completed, set IsDisabledInPlaybackList to true so that the item won't be played in the list.

Note that after playback of an item has begun, setting the IsDisabledInPlaybackList property has no effect.

Applies to