共用方式為


IVsPreviewChangesList.GetText 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

'宣告
Function GetText ( _
    index As UInteger, _
    tto As VSTREETEXTOPTIONS, _
    <OutAttribute> ByRef ppszText As String _
) As Integer
'用途
Dim instance As IVsPreviewChangesList
Dim index As UInteger
Dim tto As VSTREETEXTOPTIONS
Dim ppszText As String
Dim returnValue As Integer

returnValue = instance.GetText(index, _
    tto, ppszText)
int GetText(
    uint index,
    VSTREETEXTOPTIONS tto,
    out string ppszText
)
int GetText(
    [InAttribute] unsigned int index, 
    [InAttribute] VSTREETEXTOPTIONS tto, 
    [OutAttribute] String^% ppszText
)
abstract GetText : 
        index:uint32 * 
        tto:VSTREETEXTOPTIONS * 
        ppszText:string byref -> int 
function GetText(
    index : uint, 
    tto : VSTREETEXTOPTIONS, 
    ppszText : String
) : int

Parameters

  • ppszText
    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 IVsPreviewChangesList::GetText(
   [in]  ULONG              Index, 
   [in]  VSTREETEXTOPTIONS  tto, 
   [out] const WCHAR      **ppszText
);

Note that, for performance reasons, the returned string must persist for the life of the IVsPreviewChangesList object.

.NET Framework Security

See Also

Reference

IVsPreviewChangesList Interface

IVsPreviewChangesList Members

Microsoft.VisualStudio.Shell.Interop Namespace