共用方式為


DataCommand.ExecuteWithoutResults 方法 (String, DataCommandType)

執行命令,但未要求結果,反而會傳回呼叫的結果整數。

命名空間:  Microsoft.VisualStudio.Data.Framework
組件:  Microsoft.VisualStudio.Data.Framework (在 Microsoft.VisualStudio.Data.Framework.dll 中)

語法

'宣告
Public Function ExecuteWithoutResults ( _
    command As String, _
    commandType As DataCommandType _
) As Integer
public int ExecuteWithoutResults(
    string command,
    DataCommandType commandType
)
public:
virtual int ExecuteWithoutResults(
    String^ command, 
    DataCommandType commandType
) sealed
abstract ExecuteWithoutResults : 
        command:string * 
        commandType:DataCommandType -> int  
override ExecuteWithoutResults : 
        command:string * 
        commandType:DataCommandType -> int
public final function ExecuteWithoutResults(
    command : String, 
    commandType : DataCommandType
) : int

參數

  • command
    類型:String

    要針對資料來源執行的命令。

傳回值

類型:Int32
DDEX 提供者特定整數狀態碼。

實作

IVsDataCommand.ExecuteWithoutResults(String, DataCommandType)

例外狀況

例外狀況 條件
ArgumentNullException

command 參數為 nullnull 參考 (即 Visual Basic 中的 Nothing)。

備註

在大部分情況下,呼叫的結果指派給這個方法會指示資料列數會受到影響。

注意事項注意事項

發生表示執行的其他例外狀況為一個提供者指定的原因而失敗。

.NET Framework 安全性

請參閱

參考

DataCommand 類別

ExecuteWithoutResults 多載

Microsoft.VisualStudio.Data.Framework 命名空間