DbProviderServices.RegisterInfoMessageHandler Method

Definition

Registers a handler to process non-error messages coming from the database provider.

public virtual void RegisterInfoMessageHandler (System.Data.Common.DbConnection connection, Action<string> handler);
abstract member RegisterInfoMessageHandler : System.Data.Common.DbConnection * Action<string> -> unit
override this.RegisterInfoMessageHandler : System.Data.Common.DbConnection * Action<string> -> unit
Public Overridable Sub RegisterInfoMessageHandler (connection As DbConnection, handler As Action(Of String))

Parameters

connection
DbConnection

The connection to receive information for.

handler
Action<String>

The handler to process messages.

Applies to