PostSharp4.3//API Reference/Post­Sharp.​Extensibility Namespace/Message­Source Class/Message­Source Methods/Message­Source.​Write Method/Message­Source.​Write Method (Parameter­Info, Severity­Type, String, Object[])
MessageSource.Write Method (ParameterInfo, SeverityType, String, Object[])
Emits a Message.

Namespace: PostSharp.Extensibility
Assembly: PostSharp (in PostSharp.dll) Version: 4.3.48.0 (4.3.48.0)
Syntax
C#
public void Write(
	ParameterInfo codeElement,
	SeverityType severity,
	string messageId,
	params Object[] arguments
)

Parameters

codeElement
Type: System.Reflection.ParameterInfo
Source code artifact that caused the message.
severity
Type: PostSharp.Extensibility.SeverityType
Message severity (fatal error, error, info, debug).
messageId
Type: System.String
Identifier of the message type.
arguments
Type: System.Object[]
Array of arguments used to format the message text, or null if this message has no argument.
See Also