PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Extensibility Namespace / Message­Location­Extensions Class / Message­Location­Extensions Methods / Message­Location­Extensions.​Write Method / Message­Location­Extensions.​Write Method (Message­Source, XObject, Severity­Type, String, Object[])

MessageLocationExtensions.Write Method (MessageSource, XObject, SeverityType, String, Object[])

[Missing <summary> documentation for "M:PostSharp.Extensibility.MessageLocationExtensions.Write(PostSharp.Extensibility.MessageSource,System.Xml.Linq.XObject,PostSharp.Extensibility.SeverityType,System.String,System.Object[])"]

Namespace:  PostSharp.Extensibility
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public static void Write(
	this MessageSource messageSource,
	XObject node,
	SeverityType severity,
	string messageId,
	params Object[] arguments
)

Parameters

messageSource
Type: MessageSource

[Missing <param name="messageSource"/> documentation for "M:PostSharp.Extensibility.MessageLocationExtensions.Write(PostSharp.Extensibility.MessageSource,System.Xml.Linq.XObject,PostSharp.Extensibility.SeverityType,System.String,System.Object[])"]

node
Type: System.Xml.Linq.XObject

[Missing <param name="node"/> documentation for "M:PostSharp.Extensibility.MessageLocationExtensions.Write(PostSharp.Extensibility.MessageSource,System.Xml.Linq.XObject,PostSharp.Extensibility.SeverityType,System.String,System.Object[])"]

severity
Type: SeverityType

[Missing <param name="severity"/> documentation for "M:PostSharp.Extensibility.MessageLocationExtensions.Write(PostSharp.Extensibility.MessageSource,System.Xml.Linq.XObject,PostSharp.Extensibility.SeverityType,System.String,System.Object[])"]

messageId
Type: System.String

[Missing <param name="messageId"/> documentation for "M:PostSharp.Extensibility.MessageLocationExtensions.Write(PostSharp.Extensibility.MessageSource,System.Xml.Linq.XObject,PostSharp.Extensibility.SeverityType,System.String,System.Object[])"]

arguments
Type: System.Object[]

[Missing <param name="arguments"/> documentation for "M:PostSharp.Extensibility.MessageLocationExtensions.Write(PostSharp.Extensibility.MessageSource,System.Xml.Linq.XObject,PostSharp.Extensibility.SeverityType,System.String,System.Object[])"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type MessageSource. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also