Show All

# Timeout Property (ADOAdapter Object)

Sets or retrieves the long integer timeout value for an ADOAdapter object.

expression.Timeout

expression Required. An expression that returns a reference to the ADOAdapter object.

## Security Level

2: Can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.

## Remarks

The Timeout property of the ADOAdapter object contains the timeout value that is used by the ADO data adapter to regulate the time used to submit and retrieve data from an ActiveX Data Objects/OLEDB external data source.

Note The ADOAdapter object is limited to work only with Microsoft SQL Server and Microsoft Access databases.

## Example

In the following example, the Timeout property of the ADOAdapter object is used to display the timeout value of the ADO data adapter in a message box:

    var objADOAdapter;

    objADOAdapter = XDocument.DataObjects("CityList").QueryAdapter;
    XDocument.UI.Alert("SQL command text: " + objADOAdapter.Timeout);

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp