Click or drag to resize

IConnection Interface

Represents a connection.

Namespace:  MongoDB.Driver.Core.Connections
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.13.1-v2-13-x1+a7f8afe27855f38f4f72157d11ba2ae73895502e
Syntax
public interface IConnection : IDisposable

The IConnection type exposes the following members.

Properties
  NameDescription
Public propertyConnectionId
Gets the connection identifier.
Public propertyDescription
Gets the connection description.
Public propertyEndPoint
Gets the end point.
Public propertyGeneration
Gets the generation of the pool when this connection was created.
Public propertyIsExpired
Gets a value indicating whether this instance is expired.
Public propertySettings
Gets the connection settings.
Top
Methods
  NameDescription
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodOpen
Opens the connection.
Public methodOpenAsync
Opens the connection.
Public methodReceiveMessage
Receives a message.
Public methodReceiveMessageAsync
Receives a message.
Public methodSendMessages
Sends the messages.
Public methodSendMessagesAsync
Sends the messages.
Public methodSetReadTimeout
Set read timeout value.
Top
See Also