Freigeben über


IProjectionSnapshot.GetMatchingSnapshot-Methode

Ruft die Momentaufnahme des angegebenen Textpuffers ab, der dieser Momentaufnahme entspricht.

Namespace:  Microsoft.VisualStudio.Text.Projection
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

'Declaration
Function GetMatchingSnapshot ( _
    textBuffer As ITextBuffer _
) As ITextSnapshot
ITextSnapshot GetMatchingSnapshot(
    ITextBuffer textBuffer
)
ITextSnapshot^ GetMatchingSnapshot(
    ITextBuffer^ textBuffer
)
abstract GetMatchingSnapshot : 
        textBuffer:ITextBuffer -> ITextSnapshot
function GetMatchingSnapshot(
    textBuffer : ITextBuffer
) : ITextSnapshot

Parameter

Rückgabewert

Typ: Microsoft.VisualStudio.Text.ITextSnapshot
Die Momentaufnahme des Textpuffers oder nullein Nullverweis (Nothing in Visual Basic) , wenn textBuffer kein Textpuffer dieses Projektionspuffers ist.

Ausnahmen

Ausnahme Bedingung
ArgumentNullException

textBuffer ist nullein Nullverweis (Nothing in Visual Basic).

.NET Framework-Sicherheit

Siehe auch

Referenz

IProjectionSnapshot Schnittstelle

Microsoft.VisualStudio.Text.Projection-Namespace