IVsToolbox2.AddActiveXItem2 Method

Adds an ActiveX item to the Toolbox.

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

Syntax

'Declaration
Function AddActiveXItem2 ( _
    ByRef clsid As Guid, _
    lpszTab As String, _
    pHierarchy As IVsHierarchy, _
    ByRef guidPkg As Guid _
) As Integer
int AddActiveXItem2(
    ref Guid clsid,
    string lpszTab,
    IVsHierarchy pHierarchy,
    ref Guid guidPkg
)
int AddActiveXItem2(
    [InAttribute] Guid% clsid, 
    [InAttribute] String^ lpszTab, 
    [InAttribute] IVsHierarchy^ pHierarchy, 
    [InAttribute] Guid% guidPkg
)
abstract AddActiveXItem2 : 
        clsid:Guid byref * 
        lpszTab:string * 
        pHierarchy:IVsHierarchy * 
        guidPkg:Guid byref -> int 
function AddActiveXItem2(
    clsid : Guid, 
    lpszTab : String, 
    pHierarchy : IVsHierarchy, 
    guidPkg : Guid
) : int

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

Return Value

Type: System.Int32
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
);

.NET Framework Security

See Also

Reference

IVsToolbox2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace