IVsToolbox.SetItemInfo Method
Sets information for the referenced item.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function SetItemInfo ( _
pDO As IDataObject, _
ptif As TBXITEMINFO() _
) As Integer
'Usage
Dim instance As IVsToolbox
Dim pDO As IDataObject
Dim ptif As TBXITEMINFO()
Dim returnValue As Integer
returnValue = instance.SetItemInfo(pDO, _
ptif)
int SetItemInfo(
IDataObject pDO,
TBXITEMINFO[] ptif
)
int SetItemInfo(
[InAttribute] IDataObject^ pDO,
[InAttribute] array<TBXITEMINFO>^ ptif
)
abstract SetItemInfo :
pDO:IDataObject *
ptif:TBXITEMINFO[] -> int
function SetItemInfo(
pDO : IDataObject,
ptif : TBXITEMINFO[]
) : int
Parameters
- pDO
Type: Microsoft.VisualStudio.OLE.Interop.IDataObject
[in] Data object to set information for.
- ptif
Type: array<Microsoft.VisualStudio.Shell.Interop.TBXITEMINFO[]
[in] Structure containing the item information to set for the data object. For a list of ptif values, see TBXITEMINFO.
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 IVsToolbox::SetItemInfo(
[in]IDataObject* pDO,
[in]PTBXITEMINFO ptif
);
.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.