Partager via


GetMarkerName

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This method retrieves the name of a marker, given its marker number.

Compatibility: Windows Media Player

Syntax

sRetVal = MediaPlayer.GetMarkerName( 
    lMarkerNum 
)

Parameters

  • lMarkerNum
    [in] Long value specifying the number of the marker name to return.

Return Value

Returns a String containing the name of the marker. This method returns a null string if the specified marker does not exist.

Remarks

Some media clips do not contain markers. Retrieve the MarkerCount property to find out how many markers are in the current clip.

Marker numbers start at 1.

If a clip has no markers, the value of MarkerCount is zero.

The following example tests MarkerCount before displaying a message box with the marker name.

If MediaPlayer1.MarkerCount > 0 Then
  MsgBox "Marker 1 is named " + MediaPlayer.GetMarkerName(1) + "."
End If

Requirements

Windows Embedded CE Windows CE 3.0 and later

See Also

Reference

Windows Media Player Methods
MarkerCount
CurrentMarker
GetMarkerTime

Concepts

Compatibility Modes
Playback Methods and Properties