DataAsyncCommand Class
Enables executing data commands in an asynchronous manner.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
<GuidAttribute("AD18952D-2ED0-48f3-B5E6-48992526EB93")> _
Public MustInherit Class DataAsyncCommand
Dim instance As DataAsyncCommand
[GuidAttribute("AD18952D-2ED0-48f3-B5E6-48992526EB93")]
public abstract class DataAsyncCommand
[GuidAttribute(L"AD18952D-2ED0-48f3-B5E6-48992526EB93")]
public ref class DataAsyncCommand abstract
public abstract class 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, on the other hand, 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 with 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. A DDEX provider should only need to provide their own implementation of this class in special situations.
An implementation of this class is exposed as a service on the data connection.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Data.DataAsyncCommand
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.