CodeGeneratorContext.AddCodeMapping(SourceLocation, Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.