DataAsyncCommand.OnExecute 方法
分派非同步作業執行同步處理 Execute 方法呼叫。
命名空間: Microsoft.VisualStudio.Data.Framework
組件: Microsoft.VisualStudio.Data.Framework (在 Microsoft.VisualStudio.Data.Framework.dll 中)
語法
'宣告
Protected Overridable Function OnExecute ( _
command As String, _
commandType As DataCommandType, _
parameters As IVsDataParameter(), _
commandTimeout As Integer _
) As IVsDataReader
protected virtual IVsDataReader OnExecute(
string command,
DataCommandType commandType,
IVsDataParameter[] parameters,
int commandTimeout
)
protected:
virtual IVsDataReader^ OnExecute(
String^ command,
DataCommandType commandType,
array<IVsDataParameter^>^ parameters,
int commandTimeout
)
abstract OnExecute :
command:string *
commandType:DataCommandType *
parameters:IVsDataParameter[] *
commandTimeout:int -> IVsDataReader
override OnExecute :
command:string *
commandType:DataCommandType *
parameters:IVsDataParameter[] *
commandTimeout:int -> IVsDataReader
protected function OnExecute(
command : String,
commandType : DataCommandType,
parameters : IVsDataParameter[],
commandTimeout : int
) : IVsDataReader
參數
command
類型:String結構描述衍生自類別的命令。
commandType
類型:Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType表示所表示之命令的 DataCommandType 列舉值的命令類型。 值會指定如何解譯 command 參數的內容。
parameters
類型:array<Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[]要傳遞的參數清單與命令。
commandTimeout
類型:Int32時間,以秒為單位),在目前的命令逾時。
傳回值
類型:Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader
IVsDataReader 物件,提供資料來源的轉送,唯讀資料流。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。