SqlConnectionStringBuilder.AsynchronousProcessing Property


Gets or sets a Boolean value that indicates whether asynchronous processing is allowed by the connection created by using this connection string.

Namespace:   System.Data.SqlClient
Assembly:  System.Data (in System.Data.dll)

member AsynchronousProcessing : bool with get, set

Property Value

Type: System.Boolean

This property is ignored beginning in .NET Framework 4.5. For more information about SqlClient support for asynchronous programming, see Asynchronous Programming.

The value of the AsynchronousProcessing property, or false if no value has been supplied.

This property corresponds to the "Asynchronous Processing" and "async" keys within the connection string. In order to take advantage of the asynchronous processing provided by the SqlCommand object, this key/value pair must be included within the connection string of the associated SqlConnection object.

The following example retrieves a connection string and verifies that the connection string is configured to allow for asynchronous processing. (In this case, the string comes from a procedure within the application, but in a production application, the connection string might come from a configuration file, or some other source.) Then, the example performs an asynchronous operation, updating values within a sample database on a background thread.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top