SourceLocationTracker.CalculateNewLocation(SourceLocation, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
此类型/成员支持.NET Framework基础结构,不应直接从代码中使用。计算源的新位置。
public static System.Web.Razor.Text.SourceLocation CalculateNewLocation (System.Web.Razor.Text.SourceLocation lastPosition, string newContent);
static member CalculateNewLocation : System.Web.Razor.Text.SourceLocation * string -> System.Web.Razor.Text.SourceLocation
Public Shared Function CalculateNewLocation (lastPosition As SourceLocation, newContent As String) As SourceLocation
参数
- lastPosition
- SourceLocation
最后一个位置。
- newContent
- String
新内容。
返回
新的源位置。