PostSharp 5.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Extensibility Namespace / Message Class / Message Constructor / Message Constructor (Severity­Type, String, String, String, String, String, Int32, Int32, Int32, Int32, Exception)

Message Constructor (SeverityType, String, String, String, String, String, Int32, Int32, Int32, Int32, Exception)

Initializes a new Message and specifies all its properties.

Namespace:  PostSharp.Extensibility
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
public Message(
	SeverityType severity,
	string messageId,
	string messageText,
	string helpLink,
	string source,
	string locationFile,
	int locationStartLine,
	int locationStartColumn,
	int locationEndLine,
	int locationEndColumn,
	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.
locationStartLine
Type: System.Int32
Start position (line) in the file that caused the error, or NotAvailable if the line is unknown or does not apply.
locationStartColumn
Type: System.Int32
Start position (column) in the file that caused the error, or NotAvailable if the line is unknown or does not apply.
locationEndLine
Type: System.Int32
End position (line) in the file that caused the error, or NotAvailable if the line is unknown or does not apply.
locationEndColumn
Type: System.Int32
End 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.
See Also