执行指定的命令,可选择带有参数,并返回结果。IVsDataReader 对象。
命名空间: Microsoft.VisualStudio.Data.Framework.AdoDotNet
程序集: Microsoft.VisualStudio.Data.Framework(在 Microsoft.VisualStudio.Data.Framework.dll 中)
语法
声明
Protected Overridable Function ExecuteCore ( _
command As String, _
commandType As DataCommandType, _
parameters As IVsDataParameter(), _
commandTimeout As Integer _
) As IVsDataReader
protected virtual IVsDataReader ExecuteCore(
string command,
DataCommandType commandType,
IVsDataParameter[] parameters,
int commandTimeout
)
protected:
virtual IVsDataReader^ ExecuteCore(
String^ command,
DataCommandType commandType,
array<IVsDataParameter^>^ parameters,
int commandTimeout
)
abstract ExecuteCore :
command:string *
commandType:DataCommandType *
parameters:IVsDataParameter[] *
commandTimeout:int -> IVsDataReader
override ExecuteCore :
command:string *
commandType:DataCommandType *
parameters:IVsDataParameter[] *
commandTimeout:int -> IVsDataReader
protected function ExecuteCore(
command : String,
commandType : DataCommandType,
parameters : IVsDataParameter[],
commandTimeout : int
) : IVsDataReader
参数
command
类型:String命令执行特定于数据源。
commandType
类型:Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType指示的命令类型,指定如何解释 command 参数的内容。
parameters
类型:array<Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[]数组中指定的命令类型的 DataParameter 对象。
commandTimeout
类型:Int32时间长度,为,在移除架构派生并返回之前阻止客户给调用方。 值为零将无限超时;值 -1 指示为默认提供程序。
返回值
类型:Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader
IVsDataReader 对象,从数据源提供的仅,只读的流。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。