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
형식: System.Int32
이 명령을 호출할 데이터 뷰 계층 구조에서 항목의 식별자입니다.
- command
형식: Microsoft.VisualStudio.Data.OleCommand
OleCommand 를 호출 하는 명령을 나타내는 개체입니다.
- executionOption
형식: Microsoft.VisualStudio.Data.OleCommandExecutionOption
모든 OleCommandExecutionOption 옵션을 호출된 하는 명령 나타내는 개체 인스턴스.
- arguments
형식: System.Object
명령에 인수를 나타내는 개체입니다.
반환 값
형식: System.Object
일반적으로 아무 것은 지정 된 명령에서 반환 되는 값을 나타내는 object 인스턴스를 반환 합니다.
예외
예외 | 조건 |
---|---|
ArgumentNullException | command 매개 변수가 null인 경우 |
ArgumentException | itemId 매개 변수가 잘못된 경우 |
NotImplementedException | 이 명령 처리기에 지정 된 명령을 구현 하지 않습니다. |
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.