Share via


IVsSimplePreviewChangesList.GetTextWithOwnership Method

Returns the specified text for the specified item in the preview list.

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

Syntax

'Declaration
Function GetTextWithOwnership ( _
    index As UInteger, _
    tto As VSTREETEXTOPTIONS, _
    <OutAttribute> ByRef pbstrText As String _
) As Integer
int GetTextWithOwnership(
    uint index,
    VSTREETEXTOPTIONS tto,
    out string pbstrText
)
int GetTextWithOwnership(
    [InAttribute] unsigned int index, 
    [InAttribute] VSTREETEXTOPTIONS tto, 
    [OutAttribute] String^% pbstrText
)
abstract GetTextWithOwnership : 
        index:uint32 * 
        tto:VSTREETEXTOPTIONS * 
        pbstrText:string byref -> int
function GetTextWithOwnership(
    index : uint, 
    tto : VSTREETEXTOPTIONS, 
    pbstrText : String
) : int

Parameters

  • index
    Type: System.UInt32

    [in] The index of the item for which to get text.

  • pbstrText
    Type: System.String%

    [out] Returns a string containing the requested text.

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 IVsSimplePreviewChangesList::GetTextWithOwnership(
   [in]  ULONG              Index, 
   [in]  VSTREETEXTOPTIONS  tto, 
   [out] BSTR              *ppszText
);

.NET Framework Security

See Also

Reference

IVsSimplePreviewChangesList Interface

Microsoft.VisualStudio.Shell.Interop Namespace