ConnectionContext Constructor
Creates an instance of the object.
Namespace: Microsoft.Rtc.Signaling
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Sub New ( _
host As String, _
port As Integer _
)
'Usage
Dim host As String
Dim port As Integer
Dim instance As New ConnectionContext(host, port)
public ConnectionContext(
string host,
int port
)
Parameters
- host
Type: System.String
The host that should be used to connect.
- port
Type: System.Int32
The port that should be used to connect.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown when given host value is null. |
ArgumentOutOfRangeException | Thrown when given port value is out of range. |
ArgumentException | Thrown when given host value is empty. |