TaskLoggingHelper.LogCriticalMessage Method

Definition

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

public:
 void LogCriticalMessage(System::String ^ subcategory, System::String ^ code, System::String ^ helpKeyword, System::String ^ file, int lineNumber, int columnNumber, int endLineNumber, int endColumnNumber, System::String ^ message, ... cli::array <System::Object ^> ^ messageArgs);
public void LogCriticalMessage (string subcategory, string code, string helpKeyword, string file, int lineNumber, int columnNumber, int endLineNumber, int endColumnNumber, string message, params object[] messageArgs);
member this.LogCriticalMessage : string * string * string * string * int * int * int * int * string * obj[] -> unit
Public Sub LogCriticalMessage (subcategory As String, code As String, helpKeyword As String, file As String, lineNumber As Integer, columnNumber As Integer, endLineNumber As Integer, endColumnNumber As Integer, message As String, ParamArray messageArgs As Object())

Parameters

subcategory
String

Description of the warning type (can be null).

code
String

Message code (can be null).

helpKeyword
String

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

file
String

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

lineNumber
Int32

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

columnNumber
Int32

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

endLineNumber
Int32

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

endColumnNumber
Int32

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

message
String

The message string.

messageArgs
Object[]

Optional arguments for formatting the message string.

Exceptions

Thrown when message is null.

Applies to