Share via


IVsToolbox2.AddActiveXItem2(Guid, String, IVsHierarchy, Guid) Method

Definition

Adds an ActiveX item to the Toolbox.

public:
 int AddActiveXItem2(Guid % clsid, System::String ^ lpszTab, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHierarchy, Guid % guidPkg);
public int AddActiveXItem2 (ref Guid clsid, string lpszTab, Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHierarchy, ref Guid guidPkg);
abstract member AddActiveXItem2 : Guid * string * Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * Guid -> int
Public Function AddActiveXItem2 (ByRef clsid As Guid, lpszTab As String, pHierarchy As IVsHierarchy, ByRef guidPkg As Guid) As Integer

Parameters

clsid
Guid

[in] Class identifier defining the ActiveX item to add.

lpszTab
String

[in] [in] The localized name of the Toolbox to add the ActiveX item to. The localized name can be obtained from the invariant non-localized name by calling GetIDOfTab(String, String)

pHierarchy
IVsHierarchy

[in] Not yet implemented.

guidPkg
Guid

[in] Not yet implemented

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsToolbox2::AddActiveXItem2(  
   [in]REFCLSID clsid,  
   [in]LPCOLESTR lpszTab,  
   [in]IVsHierarchy *pHierarchy,  
   [in]REFGUID guidPkg  
);  

Applies to