다음을 통해 공유


IVsDataViewCommandProvider.CreateSelectionCommand 메서드

여러 노드에 대 한 메뉴 명령을 선택 서버 탐색기에서 만듭니다.

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

구문

‘선언
Function CreateSelectionCommand ( _
    commandId As CommandID _
) As MenuCommand
MenuCommand CreateSelectionCommand(
    CommandID commandId
)
MenuCommand^ CreateSelectionCommand(
    CommandID^ commandId
)
abstract CreateSelectionCommand : 
        commandId:CommandID -> MenuCommand
function CreateSelectionCommand(
    commandId : CommandID
) : MenuCommand

매개 변수

  • commandId
    형식: CommandID

    A CommandID 개체 인스턴스 데이터 뷰 계층 구조에서 지정 된 항목과 관련 된 명령을 고유 하 게 식별 합니다.

반환 값

형식: MenuCommand
A MenuCommand 명령은 메뉴 항목을 나타내는 개체 또는 nullNull 참조(Visual Basic의 경우 Nothing) 없는 명령을 만든 경우.

.NET Framework 보안

참고 항목

참조

IVsDataViewCommandProvider 인터페이스

Microsoft.VisualStudio.Data.Services.SupportEntities 네임스페이스