AudioFileInputNode.Duration Property

Definition

Gets the duration for the audio input file.

public:
 property TimeSpan Duration { TimeSpan get(); };
TimeSpan Duration();
public System.TimeSpan Duration { get; }
var timeSpan = audioFileInputNode.duration;
Public ReadOnly Property Duration As TimeSpan

Property Value

A value indicating the duration for the audio input file.

Remarks

The Duration property represents the duration of the audio input file. The StartTime and EndTime properties can be used to set the range of the file that is used for playback, but setting these properties does not cause the value returned by Duration to change.

Applies to