다음을 통해 공유


DataViewMenuCommand 생성자 (Int32, CommandID, EventHandler)

새 인스턴스를 초기화는 DataMenuCommand 클래스, 항목 ID, 명령 식별자 및 이벤트를 지정 합니다.

네임스페이스:  Microsoft.VisualStudio.Data.Framework
어셈블리:  Microsoft.VisualStudio.Data.Framework(Microsoft.VisualStudio.Data.Framework.dll)

구문

‘선언
Public Sub New ( _
    itemId As Integer, _
    command As CommandID, _
    handler As EventHandler _
)
public DataViewMenuCommand(
    int itemId,
    CommandID command,
    EventHandler handler
)
public:
DataViewMenuCommand(
    int itemId, 
    CommandID^ command, 
    EventHandler^ handler
)
new : 
        itemId:int * 
        command:CommandID * 
        handler:EventHandler -> DataViewMenuCommand
public function DataViewMenuCommand(
    itemId : int, 
    command : CommandID, 
    handler : EventHandler
)

매개 변수

  • itemId
    형식: System.Int32
    데이터 뷰 계층 구조에서 노드를 고유 하 게 식별 하는 숫자 값입니다.
  • handler
    형식: System.EventHandler
    메뉴 항목을 선택할 때 발생 하는 이벤트입니다.

설명

이 생성자를 호출 하는 대리자를 DataViewMenuCommand 전달 nullNull 참조(Visual Basic의 경우 Nothing) 마지막 인수에 대 한.

.NET Framework 보안

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

참고 항목

참조

DataViewMenuCommand 클래스

DataViewMenuCommand 오버로드

Microsoft.VisualStudio.Data.Framework 네임스페이스