共用方式為


CSharpCodeWriter.WriteLineNumberDirective(SourceLocation, String) 方法

定義

針對 #line 在指定的 location 行號寫入 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 執行個體。

適用於