FallbackEventDefinition.GenerateMessage(Action<ILogger>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Generates the message that would be logged without logging it. Typically used for throwing an exception in warning-as-error cases.
public virtual string GenerateMessage (Action<Microsoft.Extensions.Logging.ILogger> logAction);
abstract member GenerateMessage : Action<Microsoft.Extensions.Logging.ILogger> -> string
override this.GenerateMessage : Action<Microsoft.Extensions.Logging.ILogger> -> string
Public Overridable Function GenerateMessage (logAction As Action(Of ILogger)) As String
Parameters
Returns
The message string.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework