CodeGeneratorContext.AddCodeMapping(SourceLocation, Int32, Int32) 方法

定义

此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。 添加映射到集合的新生成代码。

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

参数

sourceLocation
SourceLocation

所生成代码映射的源位置。

generatedCodeStart
Int32

所生成代码映射的代码起始位置。

generatedCodeLength
Int32

所生成代码映射的长度。

返回

新添加的代码映射的集合索引。

适用于