PostSharp6.6//API Reference/Post­Sharp.​Extensibility Namespace/Message­Source Class/Message­Source Methods/Message­Source.​Create­Message Method

MessageSource.CreateMessage Method

Creates a Message from the current MessageSource.

Namespace:  PostSharp.Extensibility
Assembly:  PostSharp (in PostSharp.dll) Version: 6.6.10.0 (6.6.10.0)
Syntax
C#
public Message CreateMessage(
	MessageLocation location,
	SeverityType severity,
	string messageId,
	Exception innerException,
	params Object[] arguments
)

Parameters

location
Type: PostSharp.Extensibility.MessageLocation
Location of the source code artifact causing the message.
severity
Type: PostSharp.Extensibility.SeverityType
Severity.
messageId
Type: System.String
Message identifier (resolved by the current MessageSource).
innerException
Type: System.Exception
Exception causing the message, or null.
arguments
Type: System.Object[]
Arguments of the message text.

Return Value

Type: Message
A Message.
See Also