共用方式為


DataViewCommandHandler.ExecuteCommand 方法 (Int32, OleCommand, OleCommandExecutionOption, Object)

產生指定的順序執行。

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

語法

'宣告
Public Overridable Function ExecuteCommand ( _
    itemId As Integer, _
    command As OleCommand, _
    executionOption As OleCommandExecutionOption, _
    arguments As Object _
) As Object
public virtual Object ExecuteCommand(
    int itemId,
    OleCommand command,
    OleCommandExecutionOption executionOption,
    Object arguments
)
public:
virtual Object^ ExecuteCommand(
    int itemId, 
    OleCommand^ command, 
    OleCommandExecutionOption executionOption, 
    Object^ arguments
)
abstract ExecuteCommand : 
        itemId:int * 
        command:OleCommand * 
        executionOption:OleCommandExecutionOption * 
        arguments:Object -> Object  
override ExecuteCommand : 
        itemId:int * 
        command:OleCommand * 
        executionOption:OleCommandExecutionOption * 
        arguments:Object -> Object
public function ExecuteCommand(
    itemId : int, 
    command : OleCommand, 
    executionOption : OleCommandExecutionOption, 
    arguments : Object
) : Object

參數

  • itemId
    類型:Int32

    項目的識別項在資料的檢視命令應該叫用的階層架構。

  • arguments
    類型:Object

    表示引數的物件至命令。

傳回值

類型:Object
傳回表示值的物件執行個體傳回由指定的命令,通常為 Nothing。

例外狀況

例外狀況 條件
ArgumentNullException

command 參數為 null。

ArgumentException

itemId 參數是無效的。

NotImplementedException

這個命令處理常式不會實作指定的命令。

.NET Framework 安全性

請參閱

參考

DataViewCommandHandler 類別

ExecuteCommand 多載

Microsoft.VisualStudio.Data 命名空間