Share via


MediaSource.Close Method

Closes the source.

Namespace:  Microsoft.Rtc.Collaboration.AudioVideo
Assembly:  Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)

Syntax

'Declaration
Public Sub Close
'Usage
Dim instance As MediaSource

instance.Close()
public void 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.

See Also

Reference

MediaSource Class

MediaSource Members

Microsoft.Rtc.Collaboration.AudioVideo Namespace