Creates an instance of the object.
Namespace:
Microsoft.Rtc.Signaling
Assembly:
Microsoft.Rtc.Collaboration(in
Microsoft.Rtc.Collaboration.dll)
Syntax
Visual Basic (Declaration) |
Public
Sub
New ( _
host
As
String, _
port
As
Integer _
)
|
C# |
public
ConnectionContext(
string
host,
int
port
)
|
Visual C++ |
public:
ConnectionContext(
String^
host,
int
port
)
|
JavaScript |
Microsoft.Rtc.Signaling.ConnectionContext =
function(
host,
port);
|
Parameters
-
host
- Type:
String
The host that should be used to connect.
-
port
- Type:
Int32
The port that should be used to connect.
Remarks
Exceptions
Exception |
Condition |
ArgumentNullException
|
Thrown when given
hostvalue is null. |
ArgumentOutOfRangeException
|
Thrown when given
portvalue is out of range. |
ArgumentException
|
Thrown when given
hostvalue is empty. |
See Also