CommandStartedEvent Constructor (String, BsonDocument, DatabaseNamespace, NullableInt64, Int32, ConnectionId, NullableObjectId) |
Namespace:
MongoDB.Driver.Core.Events
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
Syntaxpublic CommandStartedEvent(
string commandName,
BsonDocument command,
DatabaseNamespace databaseNamespace,
long? operationId,
int requestId,
ConnectionId connectionId,
ObjectId? serviceId
)
Public Sub New (
commandName As String,
command As BsonDocument,
databaseNamespace As DatabaseNamespace,
operationId As Long?,
requestId As Integer,
connectionId As ConnectionId,
serviceId As ObjectId?
)
new :
commandName : string *
command : BsonDocument *
databaseNamespace : DatabaseNamespace *
operationId : Nullable<int64> *
requestId : int *
connectionId : ConnectionId *
serviceId : Nullable<ObjectId> -> CommandStartedEvent
Parameters
- commandName
- Type: SystemString
Name of the command. - command
- Type: MongoDB.BsonBsonDocument
The command. - databaseNamespace
- Type: MongoDB.DriverDatabaseNamespace
The database namespace. - operationId
- Type: SystemNullableInt64
The operation identifier. - requestId
- Type: SystemInt32
The request identifier. - connectionId
- Type: MongoDB.Driver.Core.ConnectionsConnectionId
The connection identifier. - serviceId
- Type: SystemNullableObjectId
The service identifier.
See Also