IVsSimpleObjectList2.GetTextWithOwnership Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
İ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.
'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
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.