Partager via


IVsTextViewIntellisenseHostProvider.CreateIntellisenseHost Method

Definition

Creates an IntelliSense host.

public:
 int CreateIntellisenseHost(Microsoft::VisualStudio::TextManager::Interop::IVsTextBufferCoordinator ^ pBufferCoordinator, Guid % riid, [Runtime::InteropServices::Out] IntPtr % ppunkHost);
public int CreateIntellisenseHost (Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferCoordinator pBufferCoordinator, ref Guid riid, out IntPtr ppunkHost);
abstract member CreateIntellisenseHost : Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferCoordinator * Guid * nativeint -> int
Public Function CreateIntellisenseHost (pBufferCoordinator As IVsTextBufferCoordinator, ByRef riid As Guid, ByRef ppunkHost As IntPtr) As Integer

Parameters

pBufferCoordinator
IVsTextBufferCoordinator

[in] Pointer to the IVsTextBufferCoordinator interface.

riid
Guid

[in] GUID of the text buffer coordinator for which the IntelliSense host is being created.

ppunkHost
IntPtr

nativeint

[out, iid_is(riid)] The IntelliSense host.

Returns

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

Remarks

If pBufferCoordinator is NULL, the returned host is simply a pass-through directly to this view.

From singlefileeditor.idl:

HRESULT IVsTextViewIntellisenseHostProvider::CreateIntellisenseHost([in] IVsTextBufferCoordinator *pBufferCoordinator, [in] REFIID riid, [out, iid_is(riid)] void **ppunkHost);  

Applies to