DataCommand.ExecuteWithoutResults 方法 (String, DataCommandType, array<IVsDataParameter )
執行命令,並選擇性地使用參數,則傳回,而不需要結果,而是傳回表示呼叫的結果整數。
命名空間: Microsoft.VisualStudio.Data.Framework
組件: Microsoft.VisualStudio.Data.Framework (在 Microsoft.VisualStudio.Data.Framework.dll 中)
語法
'宣告
Public Function ExecuteWithoutResults ( _
command As String, _
commandType As DataCommandType, _
parameters As IVsDataParameter() _
) As Integer
public int ExecuteWithoutResults(
string command,
DataCommandType commandType,
IVsDataParameter[] parameters
)
public:
virtual int ExecuteWithoutResults(
String^ command,
DataCommandType commandType,
array<IVsDataParameter^>^ parameters
) sealed
abstract ExecuteWithoutResults :
command:string *
commandType:DataCommandType *
parameters:IVsDataParameter[] -> int
override ExecuteWithoutResults :
command:string *
commandType:DataCommandType *
parameters:IVsDataParameter[] -> int
public final function ExecuteWithoutResults(
command : String,
commandType : DataCommandType,
parameters : IVsDataParameter[]
) : int
參數
- command
型別:System.String
物件是針對資料來源執行的命令。
- commandType
型別:Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType
指定如何解譯 command 參數的內容命令類型。 命令類型可以是從 DataCommandType 列舉型別的值或提供者所定義的自訂命令類型,可以強制從整數的轉型 (Casting) 傳遞至 DataCommandType 列舉型別。
- parameters
型別:array<Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[]
陣列 IVsDataParameter 物件表示指定之命令類型的命令參數。
傳回值
型別:System.Int32
DDEX 提供者特定的整數狀態碼。
實作
IVsDataCommand.ExecuteWithoutResults(String, DataCommandType, array<IVsDataParameter[])
例外狀況
例外狀況 | 條件 |
---|---|
ArgumentNullException | command 參數為 nullNull 參照 (即 Visual Basic 中的 Nothing)。 |
備註
在許多情況下,呼叫的結果傳遞至這個方法會指出受影響的資料列數目。
您可以啟動和傳回值參數使用這個呼叫。它們不會被視為一部分的結果。
![]() |
---|
發生的其他例外狀況表示執行為提供者指定的原因而失敗。 |
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。