Udostępnij za pośrednictwem


MediaPlaybackList.MaxPlayedItemsToKeepOpen Property

Definition

Gets or sets a value that specifies the number of MediaPlaybackItem objects that should be kept open after they have been played.

public:
 property IReference<unsigned int> ^ MaxPlayedItemsToKeepOpen { IReference<unsigned int> ^ get(); void set(IReference<unsigned int> ^ value); };
IReference<uint32_t> MaxPlayedItemsToKeepOpen();

void MaxPlayedItemsToKeepOpen(IReference<uint32_t> value);
public System.Nullable<uint> MaxPlayedItemsToKeepOpen { get; set; }
var iReference = mediaPlaybackList.maxPlayedItemsToKeepOpen;
mediaPlaybackList.maxPlayedItemsToKeepOpen = iReference;
Public Property MaxPlayedItemsToKeepOpen As Nullable(Of UInteger)

Property Value

IReference<UInt32>

Nullable<UInt32>

Windows.Foundation.IReference<unsigned int>

IReference<uint32_t>

A value that specifies the number of MediaPlaybackItem objects that should be kept open after they have been played.

Windows requirements

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

Remarks

Set this value to cause the system to keep the specified number of media playback items open after they have been played so that, if the users navigates backwards through the playback list, the open items can be played immediately without needing to be reopened. The trade off is that the more items that are kept open, the more memory is used by your app, which is especially important to consider with background media playback, where resources are more limited than for a foreground app.

Applies to