次の方法で共有


CSharpCodeWriter.WriteLineNumberDirective(SourceLocation, String) メソッド

定義

指定した location#line行番号のプラグマ ディレクティブを書き込みます。

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 の現在のインスタンス。

適用対象