NetworkPortRange.SetRange(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Changes the port range for all audio/video communication.
public:
void SetRange(int localNetworkPortMin, int localNetworkPortMax);
public void SetRange (int localNetworkPortMin, int localNetworkPortMax);
member this.SetRange : int * int -> unit
Public Sub SetRange (localNetworkPortMin As Integer, localNetworkPortMax As Integer)
Parameters
- localNetworkPortMin
- Int32
Defines minimum port to be used for audio/video communcation.
- localNetworkPortMax
- Int32
Defines maximum port to be used for audio/video communication.
Exceptions
Thrown when either value is outside of MinPortValue, MaxPortValue range.
Thrown when the min port value is greater or equal to max port range.