Table of Contents

Property Timeout

Namespace
Neo4j.Driver
Assembly
Neo4j.Driver.dll

Timeout

Transaction timeout. Transactions that execute longer than the configured timeout will be terminated by the database. This functionality allows user code to limit query/transaction execution time. The specified timeout overrides the default timeout configured in the database using the

db.transaction.timeout
setting (
dbms.transaction.timeout
before Neo4j 5.0). Values higher than
db.transaction.timeout
will be

ignored and will fall back to the default for server versions between 4.2 and 5.2 (inclusive). Leave this field unmodified or set it to

null
to use the default timeout configured on the server. A timeout of zero will make the transaction execute indefinitely.
public TimeSpan? Timeout { get; }

Property Value

TimeSpan?

Remarks

All positive non-whole millisecond values will be rounded to the next whole millisecond.

Exceptions

ArgumentOutOfRangeException

If the value given to transaction timeout in milliseconds is less than zero.