Open sandboxFocus

Class Message

In Metalama, a message is represented by a IDiagnostic. To instantiate a diagnostic, you must first declare its DiagnosticDefinition<T> as a static field or property, then use WithArguments(T).

Inheritance
Message
Namespace: PostSharp.Extensibility
Assembly: Metalama.Migration.dll
Syntax
[Obsolete("In Metalama, a message is represented by a 'IDiagnostic'. To instantiate a diagnostic, you must first declare its 'DiagnosticDefinition<T>' as a static field or property, then use 'DiagnosticDefinition<T>.WithArguments(T)'.", false)]
public sealed class Message

Constructors

Name Description
Message(MessageLocation, SeverityType, string, string, string, string, Exception)
Message(SeverityType, string, string, string, string, string, int, int, Exception)
Message(SeverityType, string, string, string, string, string, int, int, int, int, Exception)

Fields

Name Description
NotAvailable

Properties

Name Description
InnerException
Location
MessageId
MessageText
Severity
Source

Methods

Name Description
GetExceptionStackMessage(Exception)
Write(Message)
Write(MessageLocation, SeverityType, string, string)
Write(MessageLocation, SeverityType, string, string, params object[])
Write(LocationInfo, SeverityType, string, string, params object[])
Write(Assembly, SeverityType, string, string, params object[])
Write(MemberInfo, SeverityType, string, string, params object[])
Write(ParameterInfo, SeverityType, string, string, params object[])
Write(Type, SeverityType, string, string, params object[])

Extension Methods

See Also