IVsSimpleObjectList2.GetTextWithOwnership Yöntem

Tanım

İstenen ağaç listesi öğesi için metin gösterimlerini döndürür.

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

Parametreler

index
UInt32

'ndaki İlgilendiğiniz öğenin sıfır tabanlı dizinini belirtir.

tto
VSTREETEXTOPTIONS

'ndaki İstenen metin türünü belirtir. Değerler VSTREETEXTOPTIONS numaralandırmasından alınır.

pbstrText
String

dışı Belirtilen ağaç listesi öğesi için metni döndürür.

Döndürülenler

Int32

Yöntem başarılı olursa, döndürür S_OK . Başarısız olursa, bir hata kodu döndürür.

Açıklamalar

COM Imzası

Vsshell80. IDL adresinden:

HRESULT IVsSimpleObjectList2::GetTextWithOwnership(  
   [in]  ULONG              Index,   
   [in]  VSTREETEXTOPTIONS  tto,   
   [out] BSTR              *ppszText  
);  

Bu yöntem, ağaç listesi öğesi için çeşitli metin öğeleri içeren bir dize döndürür.

Şunlara uygulanır