IStatement.QueryTimeout Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the timeout value for the statement's execution time.
public int QueryTimeout { [Android.Runtime.Register("getQueryTimeout", "()I", "GetGetQueryTimeoutHandler:Java.Sql.IStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")] get; [Android.Runtime.Register("setQueryTimeout", "(I)V", "GetSetQueryTimeout_IHandler:Java.Sql.IStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")] set; }
[<get: Android.Runtime.Register("getQueryTimeout", "()I", "GetGetQueryTimeoutHandler:Java.Sql.IStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
[<set: Android.Runtime.Register("setQueryTimeout", "(I)V", "GetSetQueryTimeout_IHandler:Java.Sql.IStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
member this.QueryTimeout : int with get, set
Property Value
the current query timeout limit in seconds; zero means there is no limit
- Attributes
Exceptions
if an error occurs accessing the database.
if an error occurs accessing the database or if seconds 0.
Remarks
Retrieves the number of seconds the driver will wait for a Statement object to execute. If the limit is exceeded, a SQLException is thrown.
Java reference for java.sql.Statement.getQueryTimeout.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.