IVsProfferCommands4::FindCommandBar Method (Object^, Guid, UInt32, Object^)

 

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)

int FindCommandBar(
	Object^ pToolbarSet,
	[InAttribute] Guid% pguidCmdGroup,
	unsigned int dwMenuId,
	[OutAttribute] Object^% ppdispCmdBar
)

Parameters

pToolbarSet
Type: System::Object^

[in] The toolbar set to search. Use null 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.

Return to top
Show: