IVsTextViewIntellisenseHost.SetSubjectFromPrimaryBuffer(TextSpan[]) Method

Definition

Sets the span from the primary buffer.

public:
 int SetSubjectFromPrimaryBuffer(cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pSpanInPrimary);
public:
 int SetSubjectFromPrimaryBuffer(Platform::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pSpanInPrimary);
int SetSubjectFromPrimaryBuffer(std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & pSpanInPrimary);
public int SetSubjectFromPrimaryBuffer (Microsoft.VisualStudio.TextManager.Interop.TextSpan[] pSpanInPrimary);
abstract member SetSubjectFromPrimaryBuffer : Microsoft.VisualStudio.TextManager.Interop.TextSpan[] -> int
Public Function SetSubjectFromPrimaryBuffer (pSpanInPrimary As TextSpan()) As Integer

Parameters

pSpanInPrimary
TextSpan[]

[in] The primary buffer's TextSpan interface.

Returns

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

Remarks

From singlefileeditor.idl:

HRESULT IVsTextViewIntellisenseHost::SetSubjectFromPrimaryBuffer(TextSpan *pSpanInPrimary);  

Applies to