Condividi tramite


Metodo IVsTextViewIntellisenseHost.SetSubjectFromPrimaryBuffer

Imposta l'intervallo dal buffer primario.

Spazio dei nomi:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Sintassi

'Dichiarazione
Function SetSubjectFromPrimaryBuffer ( _
    pSpanInPrimary As TextSpan() _
) As Integer
int SetSubjectFromPrimaryBuffer(
    TextSpan[] pSpanInPrimary
)
int SetSubjectFromPrimaryBuffer(
    array<TextSpan>^ pSpanInPrimary
)
abstract SetSubjectFromPrimaryBuffer : 
        pSpanInPrimary:TextSpan[] -> int
function SetSubjectFromPrimaryBuffer(
    pSpanInPrimary : TextSpan[]
) : int

Parametri

Valore restituito

Tipo: Int32
Se il metodo ha esito positivo, restituisce NativeMethods.S_OK.Se non riesce, restituisce un codice di errore.

Note

da singlefileeditor.idl:

HRESULT IVsTextViewIntellisenseHost::SetSubjectFromPrimaryBuffer(TextSpan *pSpanInPrimary);

Sicurezza di .NET Framework

Vedere anche

Riferimenti

IVsTextViewIntellisenseHost Interfaccia

Spazio dei nomi Microsoft.VisualStudio.TextManager.Interop