SoundPlayer.LoadTimeout Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets the time, in milliseconds, in which the .wav file must load.

Namespace:   System.Media
Assembly:  System (in System.dll)

public int LoadTimeout { get; set; }

Property Value

Type: System.Int32

The number of milliseconds to wait. The default is 10000 (10 seconds).

After this time has expired, the loading is canceled and a TimeoutException exception is thrown.

.NET Framework
Available since 2.0
Return to top