Compartilhar via


IVsSimplePreviewChangesList.OnRequestSource(UInt32, Object) Method

Definition

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

public:
 int OnRequestSource(System::UInt32 index, System::Object ^ pIUnknownTextView);
public:
 int OnRequestSource(unsigned int index, Platform::Object ^ pIUnknownTextView);
int OnRequestSource(unsigned int index, winrt::Windows::Foundation::IInspectable const & pIUnknownTextView);
public int OnRequestSource (uint index, object pIUnknownTextView);
abstract member OnRequestSource : uint32 * obj -> int
Public Function OnRequestSource (index As UInteger, pIUnknownTextView As Object) As Integer

Parameters

index
UInt32

[in] The index of the item to display.

pIUnknownTextView
Object

[in] An IUnknown object that represents the text view. This is typically an IVsTextView object.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell80.idl:

HRESULT IVsSimplePreviewChangesList::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.

Applies to