Freigeben über


CSharpCodeWriter.WriteLineNumberDirective(SourceLocation, String) Methode

Definition

Schreibt eine #line Pragma-Anweisung für die Zeilennummer am angegebenen 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

Der Speicherort, für den das Zeilen pragma generiert werden soll.

file
String

Die Datei, für die das Zeilen pragma generiert werden soll.

Gibt zurück

Die aktuelle Instanz von CSharpCodeWriter.

Gilt für: