Microsoft Windows CE 3.0  

CurrentMarker

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Sets or retrieves a value indicating the current marker number.

Compatibility:Windows Media Player

MediaPlayer.CurrentMarker [ =
lMarker
]

Parameters

lMarker
Long value indicating the current marker number. This property is read/write with a default value of zero.

Remarks

Before attempting to set this property, determine whether a file has markers and their number by using the MarkerCountproperty. If a file has no markers, setting CurrentMarkerto anything but zero results in an error. Setting CurrentMarkerto a number higher than MarkerCountalso results in an error.

CurrentMarkeralways 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 CurrentMarkerto zero to change the file position to zero.

Before FileNameis set, CurrentMarkerreturns zero.

See Also

Playback Methods and Properties