PostSharp6.0/API Reference/Post­Sharp.​Extensibility Namespace/Message Class

Message Class

Encapsulates a message (error, warning, info, ...).
Inheritance Hierarchy
System.Object
  PostSharp.Extensibility.Message

Namespace:  PostSharp.Extensibility
Assembly:  PostSharp (in PostSharp.dll) Version: 6.1.6.0 (6.1.6.0)
Syntax
C#
[SerializableAttribute]
public sealed class Message

The Message type exposes the following members.

Constructors
  NameDescription
Public methodMessage(MessageLocation, SeverityType, String, String, String, String, Exception)
Initializes a new Message and specifies all its properties.
Public methodMessage(SeverityType, String, String, String, String, String, Int32, Int32, Exception)
Initializes a new Message and specifies all its properties.
Public methodMessage(SeverityType, String, String, String, String, String, Int32, Int32, Int32, Int32, Exception)
Initializes a new Message and specifies all its properties.
Properties
  NameDescription
Public propertyHelpLink
Gets the help link.
Public propertyInnerException
Gets the
Public propertyLocation
Location of the source code artifact causing the message.
Public propertyMessageId
Gets the message type identifier.
Public propertyMessageText
Gets the message formatted text.
Public propertySeverity
Gets the message severity.
Public propertySource
Gets or sets the name of the source component.
Methods
Fields
  NameDescription
Public fieldStatic memberNotAvailable
When set to the locationLine or locationColumn constructor parameter or the [!:LocationStartColumn], [!:LocationEndColumn], [!:LocationStartLine], [!:LocationEndLine], means that the value of this property is unknown.
See Also