Compartilhar via


IVsSimpleObjectList2.GetTextWithOwnership Method

Definition

Returns the text representations for the requested tree list item.

public:
 int GetTextWithOwnership(System::UInt32 index, Microsoft::VisualStudio::Shell::Interop::VSTREETEXTOPTIONS tto, [Runtime::InteropServices::Out] System::String ^ % pbstrText);
int GetTextWithOwnership(unsigned int index, Microsoft::VisualStudio::Shell::Interop::VSTREETEXTOPTIONS tto, [Runtime::InteropServices::Out] std::wstring const & & pbstrText);
public int GetTextWithOwnership (uint index, Microsoft.VisualStudio.Shell.Interop.VSTREETEXTOPTIONS tto, out string pbstrText);
abstract member GetTextWithOwnership : uint32 * Microsoft.VisualStudio.Shell.Interop.VSTREETEXTOPTIONS * string -> int
Public Function GetTextWithOwnership (index As UInteger, tto As VSTREETEXTOPTIONS, ByRef pbstrText As String) As Integer

Parameters

index
UInt32

[in] Specifies the zero based index of the item of interest.

tto
VSTREETEXTOPTIONS

[in] Specifies the text type being requested. Values are taken from the VSTREETEXTOPTIONS enumeration.

pbstrText
String

[out] Returns the text for the specified tree list 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 IVsSimpleObjectList2::GetTextWithOwnership(  
   [in]  ULONG              Index,   
   [in]  VSTREETEXTOPTIONS  tto,   
   [out] BSTR              *ppszText  
);  

This method returns a string containing various text elements for the tree list item.

Applies to