Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

SoundPlayer.OnLoadCompleted(AsyncCompletedEventArgs) Method

Definition

Namespace:
System.Media
Assembly:
System.Windows.Extensions.dll
Assembly:
System.dll
Package:
System.Windows.Extensions v11.0.0-preview.5.26302.115
Source:
SoundPlayer.cs
Source:
SoundPlayer.cs
Source:
SoundPlayer.cs
Source:
SoundPlayer.cs
Source:
SoundPlayer.cs
Source:
SoundPlayer.cs
Source:
SoundPlayer.cs
Source:
SoundPlayer.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Raises the LoadCompleted event.

protected:
 virtual void OnLoadCompleted(System::ComponentModel::AsyncCompletedEventArgs ^ e);
protected virtual void OnLoadCompleted(System.ComponentModel.AsyncCompletedEventArgs e);
abstract member OnLoadCompleted : System.ComponentModel.AsyncCompletedEventArgs -> unit
override this.OnLoadCompleted : System.ComponentModel.AsyncCompletedEventArgs -> unit
Protected Overridable Sub OnLoadCompleted (e As AsyncCompletedEventArgs)

Parameters

e
AsyncCompletedEventArgs

An AsyncCompletedEventArgs that contains the event data.

Remarks

This method is called when loading of a .wav file is complete.

Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising Events.

The OnLoadCompleted method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

Notes to Inheritors

When overriding OnLoadCompleted(AsyncCompletedEventArgs) in a derived class, be sure to call the base class's OnLoadCompleted(AsyncCompletedEventArgs) method so that registered delegates receive the event.

Applies to

See also


Feedback

Was this page helpful?