Table of Contents

Struct CommandFailedEvent

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

Occurs when a command has failed.

public struct CommandFailedEvent
Inherited Members

Constructors

CommandFailedEvent(string, DatabaseNamespace, Exception, long?, int, ConnectionId, ObjectId?, TimeSpan)

Initializes a new instance of the CommandFailedEvent struct.

CommandFailedEvent(string, DatabaseNamespace, Exception, long?, int, ConnectionId, TimeSpan)

Initializes a new instance of the CommandFailedEvent struct.

Properties

CommandName

Gets the name of the command.

ConnectionId

Gets the connection identifier.

DatabaseNamespace

Gets the database namespace.

Duration

Gets the duration.

Failure

Gets the exception.

OperationId

Gets the operation identifier.

RequestId

Gets the request identifier.

ServiceId

Gets the service identifier.

Timestamp

Gets the timestamp.