DbConnectorCommand.WithTimeout method

Sets the timeout of the command.

public DbConnectorCommand WithTimeout(TimeSpan timeSpan)

Exceptions

exception condition
ArgumentOutOfRangeException timeSpan is not positive or InfiniteTimeSpan.

Remarks

Use InfiniteTimeSpan (not Zero) for infinite timeout.

See Also