DataAsyncCommand Class

Enables executing data commands in an asynchronous manner.

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

public class DataAsyncCommand : DataSiteableObject<IVsDataConnection>, 
	IVsDataAsyncCommand

The DataAsyncCommand type exposes the following members.

  NameDescription
Protected methodDataAsyncCommand()Creates a new instance of the DataAsyncCommand class.
Public methodDataAsyncCommand(IVsDataConnection)Initializes a new instance of the DataAsyncCommand object with an IVsDataConnection object that is set on the inherited DataSiteableObject<T> object.
Top

  NameDescription
Public propertySiteGets or sets the object site. (Inherited from DataSiteableObject<T>.)
Top

  NameDescription
Public methodCancelAsyncCancels the asynchronous call, returning immediately.
Public methodDeriveParametersAsyncDerives, in an asynchronous manner, a set of parameters for use with a specified command.
Public methodDeriveSchemaAsyncDerives, in an asynchronous manner, the schema of the specified command.
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodExecuteAsyncExecutes a command in an asynchronous manner.
Public methodExecuteWithoutResultsAsyncExecutes, in an asynchronous manner, a command that does not return any results beyond an integer value indicating status.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodOnCancelDispatches the asynchronous cancel operation to the appropriate synchronous method.
Protected methodOnDeriveParametersDispatches the asynchronous derive parameters operation to the synchronous DeriveParameters method call.
Protected methodOnDeriveParametersCompletedRaises the DeriveParametersCompleted event.
Protected methodOnDeriveSchemaDispatches the asynchronous derive schema operation to the synchronous DeriveSchema method call.
Protected methodOnDeriveSchemaCompletedRaises the DeriveSchemaCompleted event.
Protected methodOnExecuteDispatches the asynchronous execute operation to the synchronous Execute method call.
Protected methodOnExecuteCompletedRaises the ExecuteCompleted event.
Protected methodOnExecuteWithoutResultsDispatches the asynchronous execute-without-results operation to the synchronous ExecuteWithoutResults method call.
Protected methodOnExecuteWithoutResultsCompletedRaises the ExecuteWithoutResultsCompleted event.
Protected methodOnPrepareDispatches the asynchronous prepare operation to the synchronous Prepare method call.
Protected methodOnPrepareCompletedRaises the PrepareCompleted event.
Protected methodOnSiteChangedRaises the SiteChanged event. (Inherited from DataSiteableObject<T>.)
Public methodPrepareAsyncPrepares, 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.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public eventDeriveParametersCompletedOccurs when the DeriveParametersAsync command is completed.
Public eventDeriveSchemaCompletedOccurs when the DeriveSchemaAsync command is completed.
Public eventExecuteCompletedOccurs when the ExecuteAsync command is completed.
Public eventExecuteWithoutResultsCompletedOccurs when the ExecuteWithoutResultsAsync command is completed.
Public eventPrepareCompletedOccurs when the PrepareAsync command is completed.
Public eventSiteChangedOccurs when the Site property is changed. (Inherited from DataSiteableObject<T>.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft