Share via


FileName (Windows Embedded CE 6.0)

1/6/2010

This property specifies the name of the clip to play. This property is read/write.

Compatibility: Windows Media Player

Syntax

MediaPlayer.FileName [ = "sName" ]

Parameters

  • sName
    String value specifying the name of the clip. The default is an empty string ("").

Remarks

If the value of the AutoStart property is true, file playback begins automatically whenever you set the FileName property.

If you set both AutoStart and FileName at design time, the Windows Media Player control begins playing the file when it is loaded.

Setting this property is an asynchronous operation.

Requirements

Windows Embedded CE Windows CE 3.0 and later

See Also

Reference

Windows Media Player Properties
Open (Windows Media Player)
AutoStart

Concepts

Compatibility Modes
Playback Methods and Properties