MediaProvider.TryGetPortRange Method
Tries to get the port range defined for the media type.
Namespace: Microsoft.Rtc.Collaboration.ComponentModel
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Protected Function TryGetPortRange ( _
mediaType As String, _
<OutAttribute> ByRef minPort As Integer, _
<OutAttribute> ByRef maxPort As Integer _
) As Boolean
'Usage
Dim mediaType As String
Dim minPort As Integer
Dim maxPort As Integer
Dim returnValue As Boolean
returnValue = Me.TryGetPortRange(mediaType, _
minPort, maxPort)
protected bool TryGetPortRange(
string mediaType,
out int minPort,
out int maxPort
)
Parameters
- mediaType
Type: System.String
The media type for which port range is requested.
- minPort
Type: System.Int32
- maxPort
Type: System.Int32
Return Value
Type: System.Boolean
Returns true if port range was found for the media type specified.