LanguageService::IsMappedLocation Method (IVsTextBuffer^, Int32, Int32)
Visual Studio 2015
Called to determine if the specified location in the given source file references code in another file.
Assembly: Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)
Parameters
- buffer
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsTextBuffer^
[in] The IVsTextBuffer containing the source file.
- line
-
Type:
System::Int32
[in] The line in the buffer to locate.
- col
-
Type:
System::Int32
[in] The offset into the line to locate.
Return Value
Type: System::Int32If the position in the source file is mapped to another file, return S_OK; otherwise, returns S_FALSE.
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.
Show: