IConnectionFactoryCreateConnection Method |
Creates the connection.
Namespace:
MongoDB.Driver.Core.Connections
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax IConnection CreateConnection(
ServerId serverId,
EndPoint endPoint
)
Function CreateConnection (
serverId As ServerId,
endPoint As EndPoint
) As IConnection
abstract CreateConnection :
serverId : ServerId *
endPoint : EndPoint -> IConnection
Parameters
- serverId
- Type: MongoDB.Driver.Core.ServersServerId
The server identifier. - endPoint
- Type: System.NetEndPoint
The end point.
Return Value
Type:
IConnectionA connection.
See Also