Duration Property

Returns a Double value indicating the title’s playing time in seconds.

Syntax

MediaPlayer.Duration

Remarks

The IsDurationValid property specifies whether or not this property returns a valid value.

If the FileName property is not set, this property returns 0 (zero).

© 1996-1998 Microsoft Corporation. All rights reserved.