다음을 통해 공유


CSharpCodeWriter.WriteLineNumberDirective(SourceLocation, String) 메서드

정의

지정된 location#line 줄 번호에 대한 pragma 지시문을 씁니다.

public:
 Microsoft::AspNetCore::Razor::CodeGenerators::CSharpCodeWriter ^ WriteLineNumberDirective(Microsoft::AspNetCore::Razor::SourceLocation location, System::String ^ file);
public Microsoft.AspNetCore.Razor.CodeGenerators.CSharpCodeWriter WriteLineNumberDirective (Microsoft.AspNetCore.Razor.SourceLocation location, string file);
member this.WriteLineNumberDirective : Microsoft.AspNetCore.Razor.SourceLocation * string -> Microsoft.AspNetCore.Razor.CodeGenerators.CSharpCodeWriter
Public Function WriteLineNumberDirective (location As SourceLocation, file As String) As CSharpCodeWriter

매개 변수

location
SourceLocation

줄 pragma를 생성할 위치입니다.

file
String

pragma 줄을 생성할 파일입니다.

반환

CSharpCodeWriter의 현재 인스턴스입니다.

적용 대상