CodeGeneratorContext.AddCodeMapping(SourceLocation, Int32, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
此类型/成员支持 .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
所生成代码映射的长度。
返回
新添加的代码映射的集合索引。