Message Constructor (SeverityType, String, String, String, String, String, Int32, Int32, Exception) |
Initializes a new Message and specifies all its properties.
Namespace: PostSharp.Extensibility
Assembly: PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public Message( SeverityType severity, string messageId, string messageText, string helpLink, string source, string locationFile, int locationLine, int locationColumn, Exception innerException )
Parameters
- severity
- Type: PostSharp.Extensibility.SeverityType
Message severity (fatal error, error, info, debug). - messageId
- Type: System.String
Identifier of the message type. - messageText
- Type: System.String
Fully formatted message text. - helpLink
- Type: System.String
Link to the help file page associated to this message. - source
- Type: System.String
Name of the component emitting the message. - locationFile
- Type: System.String
File that caused the error, or null if the file is unknown or does not apply. - locationLine
- Type: System.Int32
Position (line) in the file that caused the error, or NotAvailable if the line is unknown or does not apply. - locationColumn
- Type: System.Int32
Position (column) in the file that caused the error, or NotAvailable if the line is unknown or does not apply. - innerException
- Type: System.Exception
The Exception that caused this message, or null if this message was not caused by an exception.