Freigeben über


DataAsyncCommand Constructor

Creates a new instance of the DataAsyncCommand class.

Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'Declaration
Protected Sub New
protected DataAsyncCommand()
protected:
DataAsyncCommand()
new : unit -> DataAsyncCommand
protected function DataAsyncCommand()

Remarks

DDEX providers can expose the ability to execute commands against their data source. This may include, but is not limited to, SQL statements, procedures, and functions.

Providers normally expose this functionality by implementing the DataCommand class, which provides synchronous command execution. When asynchronous command handling is needed, however, you can use the DataAsyncCommand class.

The DataAsyncCommand class extends command handling by providing asynchronous-capable versions of methods on the DataCommand class, as well as methods for canceling an asynchronous function call.

The DDEX runtime provides a default implementation of this class, which delegates to the synchronous methods provided by the DataCommand class. DDEX providers should need to provide their own implementations of this class only in special situations.

An implementation of this class is exposed as a service on the data connection.

.NET Framework Security

See Also

Reference

DataAsyncCommand Class

DataAsyncCommand Overload

Microsoft.VisualStudio.Data.Framework Namespace