다음을 통해 공유


IVsProfferCommands3.FindCommandBar Method

Find the object implementing a specific command.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

‘선언
Function FindCommandBar ( _
    pToolbarSet As Object, _
    ByRef pguidCmdGroup As Guid, _
    dwMenuId As UInteger, _
    <OutAttribute> ByRef ppdispCmdBar As Object _
) As Integer
‘사용 방법
Dim instance As IVsProfferCommands3
Dim pToolbarSet As Object
Dim pguidCmdGroup As Guid
Dim dwMenuId As UInteger
Dim ppdispCmdBar As Object
Dim returnValue As Integer

returnValue = instance.FindCommandBar(pToolbarSet, _
    pguidCmdGroup, dwMenuId, ppdispCmdBar)
int FindCommandBar(
    Object pToolbarSet,
    ref Guid pguidCmdGroup,
    uint dwMenuId,
    out Object ppdispCmdBar
)
int FindCommandBar(
    [InAttribute] Object^ pToolbarSet, 
    [InAttribute] Guid% pguidCmdGroup, 
    [InAttribute] unsigned int dwMenuId, 
    [OutAttribute] Object^% ppdispCmdBar
)
abstract FindCommandBar : 
        pToolbarSet:Object * 
        pguidCmdGroup:Guid byref * 
        dwMenuId:uint32 * 
        ppdispCmdBar:Object byref -> int 
function FindCommandBar(
    pToolbarSet : Object, 
    pguidCmdGroup : Guid, 
    dwMenuId : uint, 
    ppdispCmdBar : Object
) : int

Parameters

  • pToolbarSet
    Type: System.Object
    [in] The toolbar set to search. Use nulla null reference (Nothing in Visual Basic) to search the main (default) toolbar set.
  • pguidCmdGroup
    Type: System.Guid%
    [in] The GUID for the command group to search. Use GUID_Macro or GUID_AddIn defined in vbapkg.idl.
  • dwMenuId
    Type: System.UInt32
    [in] The id of the menu item corresponding to the command.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

.NET Framework Security

See Also

Reference

IVsProfferCommands3 Interface

IVsProfferCommands3 Members

Microsoft.VisualStudio.Shell.Interop Namespace