NetworkPortRange.SetRange Method
Changes the 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
- localNetworkPortMin
Type: System.Int32
Defines minimum port to be used for audio/video communcation.
- localNetworkPortMax
Type: System.Int32
Defines maximum port to be used for audio/video communication.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | Thrown when either value is outside of MinPortValue, MaxPortValue range. |
ArgumentException | Thrown when the min port value is greater or equal to max port range. |