Table of Contents

Class ConnectionDescription

Namespace
MongoDB.Driver.Core.Connections
Assembly
MongoDB.Driver.dll

Represents information describing a connection.

public sealed class ConnectionDescription : IEquatable<ConnectionDescription>
Inheritance
ConnectionDescription
Implements
Inherited Members

Constructors

ConnectionDescription(ConnectionId, HelloResult)

Initializes a new instance of the ConnectionDescription class.

Properties

AvailableCompressors

Gets the available compressors.

ConnectionId

Gets the connection identifier.

HelloResult

Gets the hello result.

MaxBatchCount

Gets the maximum number of documents in a batch.

MaxDocumentSize

Gets the maximum size of a document.

MaxMessageSize

Gets the maximum size of a message.

MaxWireDocumentSize

Gets the maximum size of a wire document.

MaxWireVersion

Gets the maximum wire version.

MinWireVersion

Gets the minimum wire version.

ServerVersion

Gets the server version.

ServiceId

Gets the service identifier.

Methods

Equals(ConnectionDescription)

Indicates whether the current object is equal to another object of the same type.

Equals(object)

Determines whether the specified object is equal to the current object.

GetHashCode()

Serves as the default hash function.

WithConnectionId(ConnectionId)

Returns a new instance of ConnectionDescription with a different connection identifier.