OperationReportHandler 构造函数

定义

初始化 OperationReportHandler 类的新实例。

public OperationReportHandler (Action<string> errorHandler = default, Action<string> warningHandler = default, Action<string> informationHandler = default, Action<string> verboseHandler = default);
public OperationReportHandler (Action<string>? errorHandler = default, Action<string>? warningHandler = default, Action<string>? informationHandler = default, Action<string>? verboseHandler = default);
new Microsoft.EntityFrameworkCore.Design.OperationReportHandler : Action<string> * Action<string> * Action<string> * Action<string> -> Microsoft.EntityFrameworkCore.Design.OperationReportHandler
Public Sub New (Optional errorHandler As Action(Of String) = Nothing, Optional warningHandler As Action(Of String) = Nothing, Optional informationHandler As Action(Of String) = Nothing, Optional verboseHandler As Action(Of String) = Nothing)

参数

errorHandler
Action<String>

OnError(String)回调。

warningHandler
Action<String>

OnWarning(String)回调。

informationHandler
Action<String>

OnInformation(String)回调。

verboseHandler
Action<String>

OnVerbose(String)回调。

适用于