次の方法で共有


IVsProfferCommands4.FindCommandBar(Object, Guid, UInt32, Object) Method

Definition

Find the object implementing a specific command.

public:
 int FindCommandBar(System::Object ^ pToolbarSet, Guid % pguidCmdGroup, System::UInt32 dwMenuId, [Runtime::InteropServices::Out] System::Object ^ % ppdispCmdBar);
public int FindCommandBar (object pToolbarSet, ref Guid pguidCmdGroup, uint dwMenuId, out object ppdispCmdBar);
abstract member FindCommandBar : obj * Guid * uint32 * obj -> int
Public Function FindCommandBar (pToolbarSet As Object, ByRef pguidCmdGroup As Guid, dwMenuId As UInteger, ByRef ppdispCmdBar As Object) As Integer

Parameters

pToolbarSet
Object

[in] The toolbar set to search. Use null to search the main (default) toolbar set.

pguidCmdGroup
Guid

[in] The GUID for the command group to search. Use GUID_Macro or GUID_AddIn defined in vbapkg.idl.

dwMenuId
UInt32

[in] The id of the menu item corresponding to the command.

ppdispCmdBar
Object

[out] The object.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

Applies to