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

已產生程式碼對應的長度。

傳回

新增程式碼對應的集合索引。

適用於