Npgsql API Documentation |

# NpgsqlCommand.CommandTimeout Property

[This is preliminary documentation and subject to change.]

Gets or sets the wait time before terminating the attempt to execute a command and generating an error.

[Visual Basic]
<DefaultValue(Value=20)>
NotOverridable Public Property CommandTimeout As Integer Implements _
IDbCommand.CommandTimeout
[C#]
[DefaultValue(Value=20)]
public int CommandTimeout {get; set;}

#### Property Value

The time (in seconds) to wait for the command to execute. The default is 20 seconds.

#### Implements

IDbCommand.CommandTimeout

#### See Also

NpgsqlCommand Class | Npgsql Namespace