SoundPlayer.Stream 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 Stream from which to load the .wav file.

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

public Stream Stream { get; set; }

Property Value

Type: System.IO.Stream

A Stream from which to load the .wav file, or null if no stream is available. The default is null.

This property is set to null when the SoundLocation property is set to a new and valid sound location.

.NET Framework
Available since 2.0
Return to top