IVsSimpleObjectList2.GetTextWithOwnership(UInt32, VSTREETEXTOPTIONS, String) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Retourne les représentations textuelles pour l'élément de liste d'arborescence demandé.
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
Paramètres
- index
- UInt32
[in] Spécifie l'index de base zéro de l'élément concerné.
[in] Spécifie le type de texte demandé. Les valeurs proviennent de l'énumération VSTREETEXTOPTIONS.
- pbstrText
- String
[out] Retourne le texte de l'élément de liste d'arborescence spécifié.
Retours
Si la méthode réussit, retourne S_OK. En cas d'échec, retourne un code d'erreur.
Remarques
Signature COM
À partir de vsshell80. idl :
HRESULT IVsSimpleObjectList2::GetTextWithOwnership(
[in] ULONG Index,
[in] VSTREETEXTOPTIONS tto,
[out] BSTR *ppszText
);
Cette méthode retourne une chaîne contenant différents éléments de texte pour l’élément de liste d’arborescence.