PostSharp 5.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Extensibility Namespace / Message­Source Class / Message­Source Methods / Message­Source.​Create­Message Method / Message­Source.​Create­Message Method (Severity­Type, String, Object[], String, Int32, Int32, Exception)

MessageSource.CreateMessage Method (SeverityType, String, Object[], String, Int32, Int32, Exception)

Note: This API is now obsolete.

Namespace:  PostSharp.Extensibility
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
[ObsoleteAttribute("Use an overload accepting a MessageLocation object.")]
public Message CreateMessage(
	SeverityType severity,
	string messageId,
	Object[] arguments,
	string locationFile,
	int locationLine,
	int locationColumn,
	Exception innerException
)

Parameters

severity
Type: PostSharp.Extensibility.SeverityType
messageId
Type: System.String
arguments
Type: System.Object[]
locationFile
Type: System.String
locationLine
Type: System.Int32
locationColumn
Type: System.Int32
innerException
Type: System.Exception

Return Value

Type: Message
See Also