IVsToolbox2::AddActiveXItem2 Method (Guid, String^, IVsHierarchy^, Guid)

 

Adds an ActiveX item to the Toolbox.

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

int AddActiveXItem2(
	[InAttribute] Guid% clsid,
	String^ lpszTab,
	IVsHierarchy^ pHierarchy,
	[InAttribute] Guid% guidPkg
)

Parameters

clsid
Type: System::Guid

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

lpszTab
Type: System::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

pHierarchy
Type: Microsoft.VisualStudio.Shell.Interop::IVsHierarchy^

[in] Not yet implemented.

guidPkg
Type: System::Guid

[in] Not yet implemented

Return Value

Type: System::Int32

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

From vsshell.idl:

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