PostSharp 6.7 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Extensibility Namespace / Message­Location Class / Message­Location Methods / Message­Location.​Explicit Method / Message­Location.​Explicit Method (String, Int32, Int32, Int32, Int32)

MessageLocation.Explicit Method (String, Int32, Int32, Int32, Int32)

Builds a MessageLocation explicitly by specifying a filename, line, and column.

Namespace:  PostSharp.Extensibility
Assembly:  PostSharp (in PostSharp.dll) Version: 6.7.12.0 (6.7.12.0)
Syntax
C#
public static MessageLocation Explicit(
	string file,
	int lineStart,
	int columnStart,
	int lineEnd,
	int columnEnd
)

Parameters

file
Type: System.String
File name.
lineStart
Type: System.Int32
Starting line number.
columnStart
Type: System.Int32
Starting column number.
lineEnd
Type: System.Int32
Ending line number.
columnEnd
Type: System.Int32
Ending column number.

Return Value

Type: MessageLocation
A MessageLocation.
See Also