Share via


CodeGeneratorContext.AddCodeMapping(SourceLocation, Int32, Int32) Method

Definition

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Adds a new generated code mapping to the collection.

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

Parameters

sourceLocation
SourceLocation

The source location of the generated code mapping.

generatedCodeStart
Int32

The code start of the generated code mapping.

generatedCodeLength
Int32

The length of the generated code mapping.

Returns

The collection index of the newly added code mapping.

Applies to