Class TransactionOptions

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver

Assembly

MongoDB.Driver.dll

Transaction options.

public class TransactionOptions

Inheritance

TransactionOptions

Inherited Members

Constructors

TransactionOptions(Optional, Optional, Optional, Optional<TimeSpan?>)

Initializes a new instance of the TransactionOptions class.

Properties

MaxCommitTime

Gets the max commit time.

ReadConcern

Gets the read concern.

ReadPreference

Gets the read preference.

WriteConcern

Gets the write concern.

Methods

With(Optional, Optional, Optional, Optional<TimeSpan?>)

Returns a new TransactionOptions with some values changed.