Gets or sets the Sampling Rate for the send direction.

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

Syntax

Visual Basic (Declaration)
Public 
Property 
SendDirectionSamplingRate 
As 

AudioSamplingRate
C#
public 

AudioSamplingRate 
SendDirectionSamplingRate { 
get; 
set; }
Visual C++
public:
virtual 
property 

AudioSamplingRate 
SendDirectionSamplingRate {
	

AudioSamplingRate 
get () 
sealed;
	
void 
set (

AudioSamplingRate 
value) 
sealed;
}
JavaScript
function get_
sendDirectionSamplingRate();
function set_
sendDirectionSamplingRate(
value);

Remarks

The value of the SendDirectionSamplingRate must be equal to, or a subset of, the ReceiveDirectionSamplingRate. If it is not, an InvalidOperationException will be thrown when this template is given to either the AudioVideoFlow Initialize or BeginApplyChanges methods.

This restriction prevents the application from enabling audio formats on the send direction of the audio channel which are not enabled on the receive direction. Otherwise, allowing such a configuration might cause a failure in which media from the peer endpoint could not be received.

Exceptions

Exception Condition
ArgumentOutOfRangeException Thrown when assigned value is not defined in enumerated type.

See Also