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

Message Constructor (SeverityType, String, String, String)

Note: This API is now obsolete.

Initializes a new Message and specifies only required parameters.

Namespace:  PostSharp.Extensibility
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
[ObsoleteAttribute("Use an overload that accepts the target code element.")]
public Message(
	SeverityType severity,
	string messageId,
	string messageText,
	string source
)

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.
source
Type: System.String
Name of the component emitting the message.
See Also