Gets or sets the Sampling Rate of the send and
receive streams.
Namespace:
Microsoft.Rtc.Collaboration.AudioVideo
Assembly: Microsoft.Rtc.Collaboration(in Microsoft.Rtc.Collaboration.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Property SamplingRate As AudioSamplingRate |
C# |
---|
public AudioSamplingRate SamplingRate { get; set; } |
Visual C++ |
---|
public: virtual property AudioSamplingRate SamplingRate { AudioSamplingRate get () sealed; void set ( AudioSamplingRate value) sealed; } |
JavaScript |
---|
function get_ samplingRate(); function set_ samplingRate( value); |
Remarks
An application should use the SendDirectionSamplingRate
and ReceiveDirectionSamplingRate properties instead. Use this
property only when the sampling rate is the same for both the send
direction and receive direction.
Setting this property applies the same value to both the SendDirectionSamplingRate and ReceiveDirectionSamplingRate properties.
The value returned when getting this property is the combination of the SendDirectionSamplingRate and ReceiveDirectionSamplingRate properties.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | Thrown when assigned value is not defined in enumerated type. |