Bagikan melalui


CSharpCodeWriter.WriteLineNumberDirective(SourceLocation, String) Metode

Definisi

#line Menulis direktif pragma untuk nomor baris pada yang ditentukan 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

Parameter

location
SourceLocation

Lokasi untuk menghasilkan pragma baris untuk.

file
String

File untuk menghasilkan pragma baris.

Mengembalikan

Instans saat ini dari CSharpCodeWriter.

Berlaku untuk