EventDefinition.GenerateMessage 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.
Overloads
GenerateMessage() |
Generates the message that would be logged without logging it. Typically used for throwing an exception in warning-as-error cases. |
GenerateMessage(Exception) |
Generates the message that would be logged without logging it. Typically used for throwing an exception in warning-as-error cases. |
GenerateMessage()
- Source:
- EventDefinition.cs
- Source:
- EventDefinition.cs
- Source:
- EventDefinition.cs
- Source:
- EventDefinition.cs
- Source:
- EventDefinition.cs
- Source:
- EventDefinition.cs
- Source:
- EventDefinition.cs
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 ();
abstract member GenerateMessage : unit -> string
override this.GenerateMessage : unit -> string
Public Overridable Function GenerateMessage () As String
Returns
The message string.
Applies to
GenerateMessage(Exception)
- Source:
- EventDefinition.cs
- Source:
- EventDefinition.cs
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 (Exception exception = default);
abstract member GenerateMessage : Exception -> string
override this.GenerateMessage : Exception -> string
Public Overridable Function GenerateMessage (Optional exception As Exception = Nothing) As String
Parameters
- exception
- Exception
Optional exception associated with this event.
Returns
The message string.
Applies to
Entity Framework