FileName

This property specifies 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 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

OS Versions: Windows CE 3.0 and later.

See Also

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

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.