Table of Contents

Struct ConnectionFailedEvent

Namespace
MongoDB.Driver.Core.Events
Assembly
MongoDB.Driver.Core.dll

Occurs when a connection fails.

public struct ConnectionFailedEvent
Inherited Members

Constructors

ConnectionFailedEvent(ConnectionId, Exception)

Initializes a new instance of the ConnectionFailedEvent struct.

public ConnectionFailedEvent(ConnectionId connectionId, Exception exception)

Parameters

connectionId ConnectionId

The connection identifier.

exception Exception

The exception.

Properties

ClusterId

Gets the cluster identifier.

public ClusterId ClusterId { get; }

Property Value

ClusterId

ConnectionId

Gets the connection identifier.

public ConnectionId ConnectionId { get; }

Property Value

ConnectionId

Exception

Gets the exception.

public Exception Exception { get; }

Property Value

Exception

The exception.

ServerId

Gets the server identifier.

public ServerId ServerId { get; }

Property Value

ServerId

Timestamp

Gets the timestamp.

public DateTime Timestamp { get; }

Property Value

DateTime