IVsSimplePreviewChangesList.OnRequestSource(UInt32, Object) Méthode

Définition

Charge la source de l'élément d'aperçu spécifié et l'affiche dans l'affichage de texte spécifié.

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

Paramètres

index
UInt32

[in] Index de l'élément à afficher.

pIUnknownTextView
Object

[in] Objet IUnknown qui représente l'affichage du texte. Il s'agit généralement un objet IVsTextView.

Retours

Int32

Si la méthode réussit, retourne S_OK. En cas d'échec, retourne un code d'erreur.

Remarques

Signature COM

À partir de vsshell80. idl :

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

Cette méthode est chargée de définir la mémoire tampon de la vue de texte donnée sur une mémoire tampon qui contient la source de l’élément spécifié.

S’applique à