Post­Sharp Documentation / 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: 5.0.51.0 (5.0.51.0)
Syntax
C#
[SerializableAttribute]
public sealed class Message

The Message type exposes the following members.

Constructors
  NameDescription
Public methodMessage(SeverityType, String, String, String) Obsolete.
Initializes a new Message and specifies only required parameters.
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 propertyLocationEndColumn Obsolete.
Gets the end column in the file that caused the message.
Public propertyLocationEndLine Obsolete.
Gets the end line in the file that caused the message.
Public propertyLocationFile Obsolete.
Gets the name of the file that caused the message.
Public propertyLocationStartColumn Obsolete.
Gets the start column in the file that caused the message.
Public propertyLocationStartLine Obsolete.
Gets the start line in the file that caused 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.
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also