다음을 통해 공유


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

생성된 코드 매핑의 길이입니다.

반환

새로 추가된 코드 매핑의 컬렉션 인덱스입니다.

적용 대상