共用方式為


DataSourceView.ExecuteCommand 方法

定義

執行指定命令。

多載

ExecuteCommand(String, IDictionary, IDictionary, DataSourceViewOperationCallback)

執行指定命令。

ExecuteCommand(String, IDictionary, IDictionary)

執行指定命令。

ExecuteCommand(String, IDictionary, IDictionary, DataSourceViewOperationCallback)

執行指定命令。

public:
 virtual void ExecuteCommand(System::String ^ commandName, System::Collections::IDictionary ^ keys, System::Collections::IDictionary ^ values, System::Web::UI::DataSourceViewOperationCallback ^ callback);
public virtual void ExecuteCommand (string commandName, System.Collections.IDictionary keys, System.Collections.IDictionary values, System.Web.UI.DataSourceViewOperationCallback callback);
abstract member ExecuteCommand : string * System.Collections.IDictionary * System.Collections.IDictionary * System.Web.UI.DataSourceViewOperationCallback -> unit
override this.ExecuteCommand : string * System.Collections.IDictionary * System.Collections.IDictionary * System.Web.UI.DataSourceViewOperationCallback -> unit
Public Overridable Sub ExecuteCommand (commandName As String, keys As IDictionary, values As IDictionary, callback As DataSourceViewOperationCallback)

參數

commandName
String

命令的名稱。

keys
IDictionary

要對其作用的物件索引鍵或資料列索引鍵字典。

values
IDictionary

名稱/值組的字典,表示資料項目及其值。

備註

這個方法不會傳回值。

適用於

ExecuteCommand(String, IDictionary, IDictionary)

執行指定命令。

protected:
 virtual int ExecuteCommand(System::String ^ commandName, System::Collections::IDictionary ^ keys, System::Collections::IDictionary ^ values);
protected virtual int ExecuteCommand (string commandName, System.Collections.IDictionary keys, System.Collections.IDictionary values);
abstract member ExecuteCommand : string * System.Collections.IDictionary * System.Collections.IDictionary -> int
override this.ExecuteCommand : string * System.Collections.IDictionary * System.Collections.IDictionary -> int
Protected Overridable Function ExecuteCommand (commandName As String, keys As IDictionary, values As IDictionary) As Integer

參數

commandName
String

命令的名稱。

keys
IDictionary

要對其作用的物件索引鍵或資料列索引鍵字典。

values
IDictionary

名稱/值組的字典,表示資料項目及其值。

傳回

Int32

作業所影響的項目數目。

適用於