MenuCommandService.AddCommand(MenuCommand) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
메뉴 명령 서비스에 명령 처리기를 추가합니다.
public:
virtual void AddCommand(System::ComponentModel::Design::MenuCommand ^ command);
public virtual void AddCommand(System.ComponentModel.Design.MenuCommand command);
abstract member AddCommand : System.ComponentModel.Design.MenuCommand -> unit
override this.AddCommand : System.ComponentModel.Design.MenuCommand -> unit
Public Overridable Sub AddCommand (command As MenuCommand)
매개 변수
- command
- MenuCommand
추가할 개체입니다 MenuCommand .
구현
예외
command은 null입니다.
명령 처리기가 command 이미 있습니다.
설명
이 메서드는 AddCommand 메뉴 명령 서비스에 명령 처리기를 추가합니다. 명령 처리기는 메뉴 항목의 텍스트, 바로 가기 또는 배치를 정의하지 않습니다. 대신 항목을 클릭할 경우 메뉴 항목의 동작을 정의합니다.