SoundPlayer Constructor (SerializationInfo, StreamingContext)
Collapse the table of content
Expand the table of content

SoundPlayer Constructor (SerializationInfo, StreamingContext)

 

Initializes a new instance of the SoundPlayer class.

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

protected SoundPlayer(
	SerializationInfo serializationInfo,
	StreamingContext context
)

Parameters

serializationInfo
Type: System.Runtime.Serialization.SerializationInfo

The SerializationInfo to be used for deserialization.

context
Type: System.Runtime.Serialization.StreamingContext

The destination to be used for deserialization.

Exception Condition
UriFormatException

The SoundLocation specified in serializationInfo cannot be resolved.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft