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 item to the toolbox with a reference to an owning package.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
Syntax
'Declaration
Function AddItemWithOwningPackage ( _
pDO As IDataObject, _
ptif As TBXITEMINFO(), _
szItemID As String, _
lpszTab As String, _
ByRef guidPkg As Guid _
) As Integer
'Usage
Dim instance As IVsAddToolboxItems
Dim pDO As IDataObject
Dim ptif As TBXITEMINFO()
Dim szItemID As String
Dim lpszTab As String
Dim guidPkg As Guid
Dim returnValue As Integer
returnValue = instance.AddItemWithOwningPackage(pDO, _
ptif, szItemID, lpszTab, guidPkg)
int AddItemWithOwningPackage(
IDataObject pDO,
TBXITEMINFO[] ptif,
string szItemID,
string lpszTab,
ref Guid guidPkg
)
int AddItemWithOwningPackage(
[InAttribute] IDataObject^ pDO,
[InAttribute] array<TBXITEMINFO>^ ptif,
[InAttribute] String^ szItemID,
[InAttribute] String^ lpszTab,
[InAttribute] Guid% guidPkg
)
abstract AddItemWithOwningPackage :
pDO:IDataObject *
ptif:TBXITEMINFO[] *
szItemID:string *
lpszTab:string *
guidPkg:Guid byref -> int
function AddItemWithOwningPackage(
pDO : IDataObject,
ptif : TBXITEMINFO[],
szItemID : String,
lpszTab : String,
guidPkg : Guid
) : int
Parameters
- pDO
Type: Microsoft.VisualStudio.OLE.Interop.IDataObject
[in] IDataObject to be added to the References tab in the Toolbox.
- ptif
Type: array<Microsoft.VisualStudio.Shell.Interop.TBXITEMINFO[]
[in] Structure identifying item characteristics, such as the item name and icon. For more information, see TBXITEMINFO.
- szItemID
Type: System.String
[in] String that identifies the item.
- lpszTab
Type: System.String
[[in] The localized name of the tab to add the ActiveX control to. The localized name can be obtained from the invariant non-localized name by calling GetIDOfTab
- guidPkg
Type: System.Guid%
GUID that identifies the package to associate with the item.
Return Value
Type: System.Int32
.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.