TaskLoggingHelper::LogCriticalMessage Method (String^, String^, String^, String^, Int32, Int32, Int32, Int32, String^, array<Object^>^)

 

Logs a critical message using the specified string and other message details.

Thread safe.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:   Microsoft.Build.Utilities
Assembly:  Microsoft.Build.Utilities.Core (in Microsoft.Build.Utilities.Core.dll)

public:
void LogCriticalMessage(
	String^ subcategory,
	String^ code,
	String^ helpKeyword,
	String^ file,
	int lineNumber,
	int columnNumber,
	int endLineNumber,
	int endColumnNumber,
	String^ message,
	... array<Object^>^ messageArgs
)

Parameters

subcategory
Type: System::String^

Description of the warning type (can be null).

code
Type: System::String^

Message code (can be null).

helpKeyword
Type: System::String^

The help keyword for the host IDE (can be null).

file
Type: System::String^

The path to the file causing the message (can be null).

lineNumber
Type: System::Int32

The line in the file causing the message (set to zero if not available).

columnNumber
Type: System::Int32

The column in the file causing the message (set to zero if not available).

endLineNumber
Type: System::Int32

The last line of a range of lines in the file causing the message (set to zero if not available).

endColumnNumber
Type: System::Int32

The last column of a range of columns in the file causing the message (set to zero if not available).

message
Type: System::String^

The message string.

messageArgs
Type: array<System::Object^>^

Optional arguments for formatting the message string.

Exception Condition
ArgumentNullException

Thrown when message is null.

Return to top
Show: