Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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
'Usage
Dim instance As IVsToolbox2
Dim clsid As Guid
Dim lpszTab As String
Dim pHierarchy As IVsHierarchy
Dim guidPkg As Guid
Dim returnValue As Integer
returnValue = instance.AddActiveXItem2(clsid, _
lpszTab, pHierarchy, guidPkg)
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
- 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.
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsToolbox2::AddActiveXItem2(
[in]REFCLSID clsid,
[in]LPCOLESTR lpszTab,
[in]IVsHierarchy *pHierarchy,
[in]REFGUID guidPkg
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.