CSharpCodeWriter.WriteLineNumberDirective(SourceLocation, String) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定した 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 の現在のインスタンス。