共用方式為


ErrorSink.OnError 方法

定義

多載

OnError(RazorError)

追蹤指定的 error

OnError(SourceLocation, String, Int32)

建立並追蹤新的 RazorError

OnError(RazorError)

追蹤指定的 error

public:
 void OnError(Microsoft::AspNetCore::Razor::RazorError ^ error);
public void OnError (Microsoft.AspNetCore.Razor.RazorError error);
member this.OnError : Microsoft.AspNetCore.Razor.RazorError -> unit
Public Sub OnError (error As RazorError)

參數

error
RazorError

要追蹤的 RazorError

適用於

OnError(SourceLocation, String, Int32)

建立並追蹤新的 RazorError

public:
 void OnError(Microsoft::AspNetCore::Razor::SourceLocation location, System::String ^ message, int length);
public void OnError (Microsoft.AspNetCore.Razor.SourceLocation location, string message, int length);
member this.OnError : Microsoft.AspNetCore.Razor.SourceLocation * string * int -> unit
Public Sub OnError (location As SourceLocation, message As String, length As Integer)

參數

location
SourceLocation

SourceLocation 錯誤的 。

message
String

描述錯誤的訊息。

length
Int32

錯誤的長度。

適用於