PostSharp 6.5 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Extensibility Namespace / Message Class / Message Methods / Message.​Write Method / Message.​Write Method (Message­Location, Severity­Type, String, String, Object[])

Message.Write Method (MessageLocation, SeverityType, String, String, Object[])

Writes a message.

Namespace:  PostSharp.Extensibility
Assembly:  PostSharp (in PostSharp.dll) Version: 6.5.19.0 (6.5.19.0)
Syntax
C#
public static void Write(
	MessageLocation messageLocation,
	SeverityType severity,
	string errorCode,
	string format,
	params Object[] arguments
)

Parameters

messageLocation
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
Severity.
errorCode
Type: System.String
Error code.
format
Type: System.String
Error message formatting string.
arguments
Type: System.Object[]
Formatting string arguments.
See Also