Partilhar via


CSharpCodeWriter.WriteLineNumberDirective(SourceLocation, String) Método

Definição

Grava uma #line diretiva pragma para o número de linha no especificado 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

Parâmetros

location
SourceLocation

O local para o qual gerar o pragma de linha.

file
String

O arquivo para o qual gerar o pragma de linha.

Retornos

A instância atual do CSharpCodeWriter.

Aplica-se a