Share via


CurrentMarker (Windows CE 5.0)

Send Feedback

This property specifies the current marker number. This property is read/write.

Compatibility: Windows Media Player

MediaPlayer.CurrentMarker [ =lMarker]

Parameters

  • lMarker
    Long value indicating the current marker number. The default value is zero.

Remarks

Before attempting to set this property, determine whether a file has markers and their number by using the MarkerCount property.

If a file has no markers, setting CurrentMarker to anything but zero results in an error. Setting CurrentMarker to a number higher than MarkerCount also results in an error.

CurrentMarker always returns the current or last marker, which means the actual file position can be either at the current marker or before the next marker. Markers are numbered beginning at 1, so if a file has markers, you can set CurrentMarker to zero to change the file position to zero.

Before FileName is set, CurrentMarker returns zero.

Requirements

OS Versions: Windows CE 3.0 and later.

See Also

Windows Media Player Properties | Compatibility Modes | Playback Methods and Properties

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.