Udostępnij za pośrednictwem


CodeGeneratorContext.AddCodeMapping(SourceLocation, Int32, Int32) Metoda

Definicja

Ten typ/element członkowski obsługuje infrastrukturę .NET Framework i nie jest przeznaczony do użycia bezpośrednio z kodu. Dodaje nowe wygenerowane mapowanie kodu do kolekcji.

public int AddCodeMapping (System.Web.Razor.Text.SourceLocation sourceLocation, int generatedCodeStart, int generatedCodeLength);
member this.AddCodeMapping : System.Web.Razor.Text.SourceLocation * int * int -> int
Public Function AddCodeMapping (sourceLocation As SourceLocation, generatedCodeStart As Integer, generatedCodeLength As Integer) As Integer

Parametry

sourceLocation
SourceLocation

Lokalizacja źródłowa wygenerowanego mapowania kodu.

generatedCodeStart
Int32

Początek kodu wygenerowanego mapowania kodu.

generatedCodeLength
Int32

Długość wygenerowanego mapowania kodu.

Zwraca

Indeks kolekcji nowo dodanego mapowania kodu.

Dotyczy