Compartir a través de


LanguageService.IsMappedLocation(IVsTextBuffer, Int32, Int32) Method

Definition

Called to determine if the specified location in the given source file references code in another file.

public:
 virtual int IsMappedLocation(Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^ buffer, int line, int col);
public:
 virtual int IsMappedLocation(Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^ buffer, int line, int col);
 virtual int IsMappedLocation(Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer const & buffer, int line, int col);
public virtual int IsMappedLocation (Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer buffer, int line, int col);
abstract member IsMappedLocation : Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer * int * int -> int
override this.IsMappedLocation : Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer * int * int -> int
Public Overridable Function IsMappedLocation (buffer As IVsTextBuffer, line As Integer, col As Integer) As Integer

Parameters

buffer
IVsTextBuffer

[in] The IVsTextBuffer containing the source file.

line
Int32

[in] The line in the buffer to locate.

col
Int32

[in] The offset into the line to locate.

Returns

If the position in the source file is mapped to another file, return S_OK; otherwise, returns S_FALSE.

Implements

Remarks

An example of source being mapped from another file is a code-behind file where the position in an HTML file references the code-behind file.

The base method always returns S_FALSE.

Applies to