RazorCompilationMessage Class

Summary

@!:ICompilationMessage- for a @!:RazorError- encountered during parsing.

Syntax

public class RazorCompilationMessage : ICompilationMessage

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.Razor.Compilation.RazorCompilationMessage

Constructors

RazorCompilationMessage(RazorError, System.String)

Initializes a [Microsoft.AspNet.Mvc.Razor.Compilation.RazorCompilationMessage](Microsoft.AspNet.Mvc.Razor.Compilation.RazorCompilationMessage.yml) with the specified message.

Arguments:
  • razorError (RazorError) – A @!:RazorError-.
  • sourceFilePath (System.String) – The path of the Razor source file that was parsed.
public RazorCompilationMessage(RazorError razorError, string sourceFilePath)

Properties

EndColumn()
Return type:System.Int32
public int EndColumn { get; }
EndLine()
Return type:System.Int32
public int EndLine { get; }
FormattedMessage()
Return type:System.String
public string FormattedMessage { get; }
Message()

Gets a message produced from compilation.

Return type:System.String
public string Message { get; }
Severity()
Return type:CompilationMessageSeverity
public CompilationMessageSeverity Severity { get; }
SourceFilePath()
Return type:System.String
public string SourceFilePath { get; }
StartColumn()
Return type:System.Int32
public int StartColumn { get; }
StartLine()
Return type:System.Int32
public int StartLine { get; }

Methods

Microsoft.AspNet.Mvc.Razor.Compilation.RazorCompilationMessage.ToString()

Returns a [System.String]() representation of this instance of [Microsoft.AspNet.Mvc.Razor.Compilation.RazorCompilationMessage](Microsoft.AspNet.Mvc.Razor.Compilation.RazorCompilationMessage.yml).

Return type:System.String
Returns:A [System.String]() representing this [Microsoft.AspNet.Mvc.Razor.Compilation.RazorCompilationMessage](Microsoft.AspNet.Mvc.Razor.Compilation.RazorCompilationMessage.yml) instance.
public override string ToString()