Share via


IVsToolbox3.GetItemID(IDataObject, String) Method

Definition

Gets the unique ID of a item.

public:
 int GetItemID(Microsoft::VisualStudio::OLE::Interop::IDataObject ^ pDO, [Runtime::InteropServices::Out] System::String ^ % pbstrID);
int GetItemID(Microsoft::VisualStudio::OLE::Interop::IDataObject const & pDO, [Runtime::InteropServices::Out] std::wstring const & & pbstrID);
public int GetItemID (Microsoft.VisualStudio.OLE.Interop.IDataObject pDO, out string pbstrID);
abstract member GetItemID : Microsoft.VisualStudio.OLE.Interop.IDataObject * string -> int
Public Function GetItemID (pDO As IDataObject, ByRef pbstrID As String) As Integer

Parameters

pDO
IDataObject

An IDataObject interface to the item.

pbstrID
String

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

Returns

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

Remarks

COM Signature

From vsshell80.idl:

HRESULT GetItemID(  
   [in] IDataObject* pDO,  
   [out] BSTR* pbstrID  
);  

Applies to