Partager via


IVsToolbox3.GetItemDisplayName(IDataObject, String) Method

Definition

Gets the display name of an item.

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

Parameters

pDO
IDataObject

An IDataObject interface to the item.

pbstrName
String

The name of the item.

Returns

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

Remarks

COM Signature

From vsshell80.idl:

HRESULT GetItemDisplayName(  
   [in] IDataObject* pDO,  
   [out] BSTR* pbstrName  
);  

Applies to