Message Constructor (MessageLocation, SeverityType, String, String, String, String, Exception) |
Initializes a new Message and specifies all its properties.
Namespace: PostSharp.Extensibility
Assembly: PostSharp (in PostSharp.dll) Version: 6.5.19.0 (6.5.19.0)
C#
public Message( MessageLocation location, SeverityType severity, string messageId, string messageText, string helpLink, string source, Exception innerException )
Parameters
- location
- Type: PostSharp.Extensibility.MessageLocation
Element of code (Assembly, Type, MethodInfo, ConstructorInfo, PropertyInfo, EventInfo or ParameterInfo) to which the message applies. When called from PostSharp.Sdk, the parameter can also contain a MetadataDeclaration. - 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. - innerException
- Type: System.Exception
The Exception that caused this message, or null if this message was not caused by an exception.