IVsPreviewChangesList.OnRequestSource Method

Loads the source for the specified preview item and displays it in the given text view.

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

Syntax

‘선언
Function OnRequestSource ( _
    index As UInteger, _
    pIUnknownTextView As Object _
) As Integer
‘사용 방법
Dim instance As IVsPreviewChangesList
Dim index As UInteger
Dim pIUnknownTextView As Object
Dim returnValue As Integer

returnValue = instance.OnRequestSource(index, _
    pIUnknownTextView)
int OnRequestSource(
    uint index,
    Object pIUnknownTextView
)
int OnRequestSource(
    [InAttribute] unsigned int index, 
    [InAttribute] Object^ pIUnknownTextView
)
abstract OnRequestSource : 
        index:uint32 * 
        pIUnknownTextView:Object -> int 
function OnRequestSource(
    index : uint, 
    pIUnknownTextView : Object
) : int

Parameters

  • pIUnknownTextView
    Type: System.Object
    [in] An IUnknown object that represents the text view. This is typically an IVsTextView object.

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::OnRequestSource(
   [in] ULONG     Index, 
   [in] IUnknown *pIUnknownTextView
);

This method is responsible for setting the given text view's buffer to a buffer that contains the source of the specified item.

.NET Framework Security

See Also

Reference

IVsPreviewChangesList Interface

IVsPreviewChangesList Members

Microsoft.VisualStudio.Shell.Interop Namespace