次の方法で共有


IVsSimpleObjectList2.GetTextWithOwnership Method

Returns the text representations for the requested tree list item.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'宣言
Function GetTextWithOwnership ( _
    index As UInteger, _
    tto As VSTREETEXTOPTIONS, _
    <OutAttribute> ByRef pbstrText As String _
) As Integer
'使用
Dim instance As IVsSimpleObjectList2
Dim index As UInteger
Dim tto As VSTREETEXTOPTIONS
Dim pbstrText As String
Dim returnValue As Integer

returnValue = instance.GetTextWithOwnership(index, _
    tto, pbstrText)
int GetTextWithOwnership(
    uint index,
    VSTREETEXTOPTIONS tto,
    out string pbstrText
)
int GetTextWithOwnership(
    [InAttribute] unsigned int index, 
    [InAttribute] VSTREETEXTOPTIONS tto, 
    [OutAttribute] String^% pbstrText
)
function GetTextWithOwnership(
    index : uint, 
    tto : VSTREETEXTOPTIONS, 
    pbstrText : String
) : int

Parameters

  • index
    Type: System.UInt32

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

  • pbstrText
    Type: System.String%

    [out] Returns the text for the specified tree list item.

Return Value

Type: System.Int32

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.

Permissions

See Also

Reference

IVsSimpleObjectList2 Interface

IVsSimpleObjectList2 Members

Microsoft.VisualStudio.Shell.Interop Namespace