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 메서드 메뉴 명령 서비스에 명령 처리기를 추가 합니다. Text, 바로 가기, 또는 배치 메뉴 항목의 명령 처리기를 정의 하지 않습니다. 항목을 클릭할 경우 메뉴 항목의 동작을 정의 합니다.