IVsToolbox3::GetItemID Method (IDataObject^, String^)

 

Gets the unique ID of a item.

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

int GetItemID(
	IDataObject^ pDO,
	[OutAttribute] String^% pbstrID
)

Parameters

pDO
Type: Microsoft.VisualStudio.OLE.Interop::IDataObject^

An IDataObject interface to the item.

pbstrID
Type: System::String^

The ID of the item. If the item is found, but has no ID then this values is null.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

From vsshell80.idl:

HRESULT GetItemID(
   [in] IDataObject* pDO,
   [out] BSTR* pbstrID
);
Return to top
Show: