SipEndpoint Constructor (String, SipAuthenticationProtocols, SipTransportType, String, Int32, Boolean, RealTimeConnectionManager, String)
Initializes a new instance of the class.
Namespace: Microsoft.Rtc.Signaling
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Sub New ( _
uri As String, _
allowedAuthenticationProtocols As SipAuthenticationProtocols, _
transportType As SipTransportType, _
serverName As String, _
serverPort As Integer, _
allowNoAuthentication As Boolean, _
connectionManager As RealTimeConnectionManager, _
endpointId As String _
)
'Usage
Dim uri As String
Dim allowedAuthenticationProtocols As SipAuthenticationProtocols
Dim transportType As SipTransportType
Dim serverName As String
Dim serverPort As Integer
Dim allowNoAuthentication As Boolean
Dim connectionManager As RealTimeConnectionManager
Dim endpointId As String
Dim instance As New SipEndpoint(uri, allowedAuthenticationProtocols, _
transportType, serverName, serverPort, _
allowNoAuthentication, connectionManager, _
endpointId)
public SipEndpoint(
string uri,
SipAuthenticationProtocols allowedAuthenticationProtocols,
SipTransportType transportType,
string serverName,
int serverPort,
bool allowNoAuthentication,
RealTimeConnectionManager connectionManager,
string endpointId
)
Parameters
- uri
Type: System..::..String
The URI of the user identifying the endpoint.
- allowedAuthenticationProtocols
Type: Microsoft.Rtc.Signaling..::..SipAuthenticationProtocols
The authentication protocols to be used for the server that is specified.
- transportType
Type: Microsoft.Rtc.Signaling..::..SipTransportType
The type of transport to be used to connect to the server.
- serverName
Type: System..::..String
The name of the server to be used.
- serverPort
Type: System..::..Int32
The port to be used to connect to the server. User 0 to use default.
- allowNoAuthentication
Type: System..::..Boolean
Indicates whether the client allows communicating with a server that does not challenge messages from this client. Most applications should pass false.
- connectionManager
Type: Microsoft.Rtc.Signaling..::..RealTimeConnectionManager
The connection manager to be used for this endpoint.
- endpointId
Type: System..::..String
The endpoint ID to use, which can be nullNothingnullptrunita null reference (Nothing in Visual Basic).
Exceptions
Exception | Condition |
---|---|
ArgumentException | Thrown when one of the arguments is not valid. |
Remarks
This endpoint is server-based.