IVsProfferCommands4.FindCommandBar Method
Find the object implementing a specific command.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
Syntax
'Declaration
Function FindCommandBar ( _
pToolbarSet As Object, _
ByRef pguidCmdGroup As Guid, _
dwMenuId As UInteger, _
<OutAttribute> ByRef ppdispCmdBar As Object _
) As Integer
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.
- ppdispCmdBar
Type: System.Object%
[out] The object.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IVsProfferCommands3.FindCommandBar(Object, Guid%, UInt32, Object%)
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.