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項目的識別項在資料的檢視命令應該叫用的階層架構。
command
類型:Microsoft.VisualStudio.Data.OleCommand表示命令的 OleCommand 物件叫用。
executionOption
類型:Microsoft.VisualStudio.Data.OleCommandExecutionOption表示在叫用命令的任何 OleCommandExecutionOption 物件執行個體選擇。
arguments
類型:Object表示引數的物件至命令。
傳回值
類型:Object
傳回表示值的物件執行個體傳回由指定的命令,通常為 Nothing。
例外狀況
例外狀況 | 條件 |
---|---|
ArgumentNullException | command 參數為 null。 |
ArgumentException | itemId 參數是無效的。 |
NotImplementedException | 這個命令處理常式不會實作指定的命令。 |
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。