Freigeben über


IVsToolbox.SetItemInfo(IDataObject, TBXITEMINFO[]) Method

Definition

Sets information for the referenced item.

public:
 int SetItemInfo(Microsoft::VisualStudio::OLE::Interop::IDataObject ^ pDO, cli::array <Microsoft::VisualStudio::Shell::Interop::TBXITEMINFO> ^ ptif);
int SetItemInfo(Microsoft::VisualStudio::OLE::Interop::IDataObject const & pDO, std::Array <Microsoft::VisualStudio::Shell::Interop::TBXITEMINFO> const & ptif);
public int SetItemInfo (Microsoft.VisualStudio.OLE.Interop.IDataObject pDO, Microsoft.VisualStudio.Shell.Interop.TBXITEMINFO[] ptif);
abstract member SetItemInfo : Microsoft.VisualStudio.OLE.Interop.IDataObject * Microsoft.VisualStudio.Shell.Interop.TBXITEMINFO[] -> int
Public Function SetItemInfo (pDO As IDataObject, ptif As TBXITEMINFO()) As Integer

Parameters

pDO
IDataObject

[in] Data object to set information for.

ptif
TBXITEMINFO[]

[in] Structure containing the item information to set for the data object. For a list of ptif values, see TBXITEMINFO.

Returns

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  
);  

Applies to