CodeGeneratorContext.AddCodeMapping(SourceLocation, Int32, Int32) Metoda

Definice

Tento typ/člen podporuje infrastrukturu rozhraní .NET Framework a není určen k použití přímo z vašeho kódu. Přidá do kolekce nové mapování vygenerovaného kódu.

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

Zdrojové umístění vygenerovaného mapování kódu.

generatedCodeStart
Int32

Začátek kódu vygenerovaného mapování kódu.

generatedCodeLength
Int32

Délka mapování vygenerovaného kódu

Návraty

Index kolekce nově přidaného mapování kódu.

Platí pro