DataAsyncCommand Class
Enables executing data commands in an asynchronous manner.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Data.Framework.DataSiteableObject<IVsDataConnection>
Microsoft.VisualStudio.Data.Framework.DataAsyncCommand
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'Declaration
Public Class DataAsyncCommand _
Inherits DataSiteableObject(Of IVsDataConnection) _
Implements IVsDataAsyncCommand
public class DataAsyncCommand : DataSiteableObject<IVsDataConnection>,
IVsDataAsyncCommand
public ref class DataAsyncCommand : public DataSiteableObject<IVsDataConnection^>,
IVsDataAsyncCommand
type DataAsyncCommand =
class
inherit DataSiteableObject<IVsDataConnection>
interface IVsDataAsyncCommand
end
public class DataAsyncCommand extends DataSiteableObject<IVsDataConnection> implements IVsDataAsyncCommand
The DataAsyncCommand type exposes the following members.
Constructors
Name | Description | |
---|---|---|
DataAsyncCommand() | Creates a new instance of the DataAsyncCommand class. | |
DataAsyncCommand(IVsDataConnection) | Initializes a new instance of the DataAsyncCommand object with an IVsDataConnection object that is set on the inherited DataSiteableObject<T> object. |
Top
Properties
Name | Description | |
---|---|---|
Site | Gets or sets the object site. (Inherited from DataSiteableObject<T>.) |
Top
Methods
Name | Description | |
---|---|---|
CancelAsync | Cancels the asynchronous call, returning immediately. | |
DeriveParametersAsync | Derives, in an asynchronous manner, a set of parameters for use with a specified command. | |
DeriveSchemaAsync | Derives, in an asynchronous manner, the schema of the specified command. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
ExecuteAsync | Executes a command in an asynchronous manner. | |
ExecuteWithoutResultsAsync | Executes, in an asynchronous manner, a command that does not return any results beyond an integer value indicating status. | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnCancel | Dispatches the asynchronous cancel operation to the appropriate synchronous method. | |
OnDeriveParameters | Dispatches the asynchronous derive parameters operation to the synchronous DeriveParameters method call. | |
OnDeriveParametersCompleted | Raises the DeriveParametersCompleted event. | |
OnDeriveSchema | Dispatches the asynchronous derive schema operation to the synchronous DeriveSchema method call. | |
OnDeriveSchemaCompleted | Raises the DeriveSchemaCompleted event. | |
OnExecute | Dispatches the asynchronous execute operation to the synchronous Execute method call. | |
OnExecuteCompleted | Raises the ExecuteCompleted event. | |
OnExecuteWithoutResults | Dispatches the asynchronous execute-without-results operation to the synchronous ExecuteWithoutResults method call. | |
OnExecuteWithoutResultsCompleted | Raises the ExecuteWithoutResultsCompleted event. | |
OnPrepare | Dispatches the asynchronous prepare operation to the synchronous Prepare method call. | |
OnPrepareCompleted | Raises the PrepareCompleted event. | |
OnSiteChanged | Raises the SiteChanged event. (Inherited from DataSiteableObject<T>.) | |
PrepareAsync | Prepares, in an asynchronous manner, the specified command to be executed against the data source; the command may then be executed multiple times, with varying parameters. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Events
Name | Description | |
---|---|---|
DeriveParametersCompleted | Occurs when the DeriveParametersAsync command is completed. | |
DeriveSchemaCompleted | Occurs when the DeriveSchemaAsync command is completed. | |
ExecuteCompleted | Occurs when the ExecuteAsync command is completed. | |
ExecuteWithoutResultsCompleted | Occurs when the ExecuteWithoutResultsAsync command is completed. | |
PrepareCompleted | Occurs when the PrepareAsync command is completed. | |
SiteChanged | Occurs when the Site property is changed. (Inherited from DataSiteableObject<T>.) |
Top
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.