Dela via


MediaPlaybackList.MoveTo(UInt32) Method

Definition

Changes the current item of the MediaPlaybackList to the item with the specified index.

public:
 virtual MediaPlaybackItem ^ MoveTo(unsigned int itemIndex) = MoveTo;
MediaPlaybackItem MoveTo(uint32_t const& itemIndex);
public MediaPlaybackItem MoveTo(uint itemIndex);
function moveTo(itemIndex)
Public Function MoveTo (itemIndex As UInteger) As MediaPlaybackItem

Parameters

itemIndex
UInt32

unsigned int

uint32_t

The index of the item to make current.

Returns

The new current MediaPlaybackItem.

Remarks

This current item of the MediaPlaybackList can't be changed while a MediaPlaybackItem with CanSkip set to false is playing. Attempting to do so will cause an exception to be thrown.

Applies to