Freigeben über


IVsTextViewIntellisenseHost.SetSubjectFromPrimaryBuffer-Methode

Legt die Spanne des primären Puffer fest.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Syntax

'Declaration
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

Parameter

Rückgabewert

Typ: Int32
Wenn die Methode erfolgreich ausgeführt, gibt sie NativeMethods.S_OK zurück.Bei einem Fehler wird ein Fehlercode zurückgegeben.

Hinweise

Von singlefileeditor.idl:

HRESULT IVsTextViewIntellisenseHost::SetSubjectFromPrimaryBuffer(TextSpan *pSpanInPrimary);

.NET Framework-Sicherheit

Siehe auch

Referenz

IVsTextViewIntellisenseHost Schnittstelle

Microsoft.VisualStudio.TextManager.Interop-Namespace