Export (0) Print
Expand All
Expand Minimize

LanguageService.IsMappedLocation Method

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

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)

public virtual int IsMappedLocation(
	IVsTextBuffer buffer,
	int line,
	int col


Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer

[in] The IVsTextBuffer containing the source file.

Type: System.Int32

[in] The line in the buffer to locate.

Type: System.Int32

[in] The offset into the line to locate.

Return Value

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


IVsLanguageDebugInfo.IsMappedLocation(IVsTextBuffer, Int32, Int32)

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.

© 2015 Microsoft