Sets the media sink for this recorder.

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

Syntax

Visual Basic (Declaration)
Public 
Sub 
SetSink ( _
	
sink 
As 

MediaSink _
)
C#
public 
void 
SetSink(
	

MediaSink 
sink
)
Visual C++
public:
void 
SetSink(
	

MediaSink^ 
sink
)
JavaScript
function 
setSink(
sink);

Parameters

sink
Type: Microsoft.Rtc.Collaboration.AudioVideo . . :: . MediaSink
The media sink that is recorded to.

Remarks

If the recorder is not Stopped, SetSink stops it. This method throws an exception if it is called with a media sink associated with another recorder.

Exceptions

Exception Condition
ArgumentNullException Thrown when the sink parameter is null.
InvalidOperationException Thrown when the sink provided has already been associated with another recorder.

See Also