Microsoft Windows CE 3.0  

FileName

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 specifying the name of the clip to play.

Compatibility:Windows Media Player

MediaPlayer.FileName [
="
sName" 
]

Parameters

sName
String value specifying the name of the clip. The default value is an empty string (""). This property is read/write.

Remarks

If the value of the AutoStartproperty is true, file playback begins automatically whenever you set the FileNameproperty. If you set both AutoStartand FileNameat design time, the Microsoft Windows Media Player control begins playing the file when it is loaded.

Setting this property is an asynchronous operation.

See Also

Open, AutoStart, Playback Methods and Properties