Share via


SetRange Method

Method enables application to change port range for all audio/video communication.

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

Syntax

'Declaration
Public Sub SetRange ( _
    localNetworkPortMin As Integer, _
    localNetworkPortMax As Integer _
)
'Usage
Dim instance As NetworkPortRange
Dim localNetworkPortMin As Integer
Dim localNetworkPortMax As Integer

instance.SetRange(localNetworkPortMin, _
    localNetworkPortMax)
public void SetRange(
    int localNetworkPortMin,
    int localNetworkPortMax
)

Parameters

Remarks

Exceptions

[T:System.ArgumentOutOfRangeException]: Throws exception if either value is outside of MinPortValue, MaxPortValue range.

[T:System.ArgumentException]: Throws if min port value is greater or equal to max port range.

See Also

Reference

NetworkPortRange Class

NetworkPortRange Members

Microsoft.Rtc.Collaboration.AudioVideo Namespace