Edit

Share via


MediaSource.Close Method

Definition

Closes the source.

public:
 void Close();
public void Close ();
member this.Close : unit -> unit
Public Sub Close ()

Remarks

The source can no longer be used after it has been closed. This method must be called after the application is finished using the object. If Close() is not called, the underlying unmanaged object will not be disposed, causing a memory leak for the application.

Applies to