CSharpCodeWriter.WriteLineNumberDirective(SourceLocation, String) 方法

定义

#line 指定 location处的行号编写杂注指令。

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

要为其生成行杂注的位置。

file
String

要为其生成行杂注的文件。

返回

CSharpCodeWriter 的当前实例。

适用于