IVsDataCommand.Execute 方法 (String, DataCommandType)
當由類別實作、執行指定的命令並傳回唯讀的結果。
命名空間: Microsoft.VisualStudio.Data.Services.SupportEntities
組件: Microsoft.VisualStudio.Data.Services (在 Microsoft.VisualStudio.Data.Services.dll 中)
語法
'宣告
Function Execute ( _
command As String, _
commandType As DataCommandType _
) As IVsDataReader
IVsDataReader Execute(
string command,
DataCommandType commandType
)
IVsDataReader^ Execute(
String^ command,
DataCommandType commandType
)
abstract Execute :
command:string *
commandType:DataCommandType -> IVsDataReader
function Execute(
command : String,
commandType : DataCommandType
) : IVsDataReader
參數
command
類型:String物件是針對資料來源執行的命令。
commandType
類型:Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType表示所表示之命令的 DataCommandType 列舉型別中的值順序型別,指定如何解譯 command 參數的內容。
傳回值
類型:Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader
IVsDataReader 物件,提供資料來源的轉送,唯讀資料流。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。