IVsSimplePreviewChangesList.OnRequestSource(UInt32, Object) 方法

定义

加载指定的预览项的源,并将其显示在给定的文本视图中。

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

参数

index
UInt32

中要显示的项的索引。

pIUnknownTextView
Object

中一个 IUnknown 表示文本视图的对象。 这通常是一个 IVsTextView 对象。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

COM 签名

从 vsshell80:

HRESULT IVsSimplePreviewChangesList::OnRequestSource(  
   [in] ULONG     Index,   
   [in] IUnknown *pIUnknownTextView  
);  

此方法负责将给定文本视图的缓冲区设置为包含指定项的源的缓冲区。

适用于