DataCommand 类

定义

表示 IVsDataCommand 接口的实现。

public ref class DataCommand abstract : Microsoft::VisualStudio::Data::Framework::DataSiteableObject<Microsoft::VisualStudio::Data::Services::IVsDataConnection ^>, Microsoft::VisualStudio::Data::Services::SupportEntities::IVsDataCommand
public abstract class DataCommand : Microsoft.VisualStudio.Data.Framework.DataSiteableObject<Microsoft.VisualStudio.Data.Services.IVsDataConnection>, Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataCommand
type DataCommand = class
    inherit DataSiteableObject<IVsDataConnection>
    interface IVsDataCommand
Public MustInherit Class DataCommand
Inherits DataSiteableObject(Of IVsDataConnection)
Implements IVsDataCommand
继承
实现

构造函数

DataCommand()

初始化 DataCommand 类的新实例。

DataCommand(IVsDataConnection)

将 类的新实例 DataCommand 与数据连接对象一起初始化。

属性

Site

获取或设置对象站点。

(继承自 DataSiteableObject<T>)

方法

CreateParameter()

创建一个参数对象,该对象可以传递到实例上的 DeriveSchema(String, Int32, DataParameter[], Int32)DataCommandDeriveSchema(String, Int32, DataParameter[], Int32)Execute(String, Int32, DataParameter[], Int32)ExecuteWithoutResults(String, DataCommandType, IVsDataParameter[]) 方法中。

DeriveParameters(String)

派生可为给定命令指定的参数。

DeriveParameters(String, DataCommandType)

派生可为给定命令指定的参数。

DeriveParameters(String, DataCommandType, Int32)

派生可为给定命令指定的参数。

DeriveSchema(String)

派生从指定命令返回的架构。 架构指示数据读取器中项和块的布局。

DeriveSchema(String, DataCommandType)

派生从指定命令返回的架构。 架构指示数据读取器中项和块的布局。

DeriveSchema(String, DataCommandType, IVsDataParameter[])

派生从指定命令返回的架构。 架构指示数据读取器中项和块的布局。

DeriveSchema(String, DataCommandType, IVsDataParameter[], Int32)

派生从指定命令返回的架构。 架构指示数据读取器中项和块的布局。

Execute(String)

执行指定的命令并返回只读结果。

Execute(String, DataCommandType)

执行指定的命令并返回只读结果。

Execute(String, DataCommandType, IVsDataParameter[])

使用参数执行指定的命令(可选),并返回只读结果。

Execute(String, DataCommandType, IVsDataParameter[], Int32)

使用参数执行指定的命令(可选),并返回只读结果。

ExecuteWithoutResults(String)

执行命令,但不请求结果,而是返回一个指示调用结果的整数。

ExecuteWithoutResults(String, DataCommandType)

执行命令,但不请求结果,而是返回一个指示调用结果的整数。

ExecuteWithoutResults(String, DataCommandType, IVsDataParameter[])

使用参数执行命令(可选),但不请求结果,而是返回一个指示调用结果的整数。

ExecuteWithoutResults(String, DataCommandType, IVsDataParameter[], Int32)

使用参数执行命令(可选),但不请求结果,而是返回一个指示调用结果的整数。

OnSiteChanged(EventArgs)

引发 SiteChanged 事件。

(继承自 DataSiteableObject<T>)
Prepare(String)

准备要执行的数据源上的指定命令;然后,可以使用不同的参数多次执行 命令。

Prepare(String, DataCommandType)

准备要执行的数据源上的指定命令;然后,可以使用不同的参数多次执行 命令。

Prepare(String, DataCommandType, IVsDataParameter[])

准备要执行的数据源上的指定命令;然后,可以使用不同的参数多次执行 命令。

Prepare(String, DataCommandType, IVsDataParameter[], Int32)

准备要执行的数据源上的指定命令;然后,可以使用不同的参数多次执行 命令。

事件

SiteChanged

Site 属性更改时发生。

(继承自 DataSiteableObject<T>)

适用于