Поделиться через


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.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'Declaration
Public Overridable Function IsMappedLocation ( _
    buffer As IVsTextBuffer, _
    line As Integer, _
    col As Integer _
) As Integer
public virtual int IsMappedLocation(
    IVsTextBuffer buffer,
    int line,
    int col
)
public:
virtual int IsMappedLocation(
    IVsTextBuffer^ buffer, 
    int line, 
    int col
)
abstract IsMappedLocation : 
        buffer:IVsTextBuffer * 
        line:int * 
        col:int -> int 
override IsMappedLocation : 
        buffer:IVsTextBuffer * 
        line:int * 
        col:int -> int 
public function IsMappedLocation(
    buffer : IVsTextBuffer, 
    line : int, 
    col : int
) : int

Parameters

  • 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.Int32
If the position in the source file is mapped to another file, return S_OK; otherwise, returns S_FALSE.

Implements

IVsLanguageDebugInfo.IsMappedLocation(IVsTextBuffer, Int32, Int32)

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.

.NET Framework Security

See Also

Reference

LanguageService Class

Microsoft.VisualStudio.Package Namespace