TaskLoggingHelper.LogWarningFromResources Method

Definition

Logs a warning using the specified resource string.

Overloads

LogWarningFromResources(String, Object[])

Logs a warning using the specified resource string.

LogWarningFromResources(String, String, String, String, Int32, Int32, Int32, Int32, String, Object[])

Logs a warning using the specified resource string and other warning details.

LogWarningFromResources(String, Object[])

Logs a warning using the specified resource string.

public:
 void LogWarningFromResources(System::String ^ messageResourceName, ... cli::array <System::Object ^> ^ messageArgs);
public void LogWarningFromResources (string messageResourceName, params object[] messageArgs);
member this.LogWarningFromResources : string * obj[] -> unit
Public Sub LogWarningFromResources (messageResourceName As String, ParamArray messageArgs As Object())

Parameters

messageResourceName
String

The name of the string resource to load.

messageArgs
Object[]

The arguments for formatting the loaded string.

Exceptions

messageResourceName is null.

Remarks

This method is not thread-safe.

LogWarningFromResources(String, String, String, String, Int32, Int32, Int32, Int32, String, Object[])

Logs a warning using the specified resource string and other warning details.

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

Parameters

subcategoryResourceName
String

The name of the string resource that describes the warning type.

warningCode
String

The warning code.

helpKeyword
String

The Help keyword to associate with the warning.

file
String

The path to the file containing the warning.

lineNumber
Int32

The line in the file where the warning occurs.

columnNumber
Int32

The column in the file where the warning occurs.

endLineNumber
Int32

The end line in the file where the warning occurs.

endColumnNumber
Int32

The end column in the file where the warning occurs.

messageResourceName
String

The name of the string resource to load.

messageArgs
Object[]

The arguments for formatting the loaded string.

Exceptions

messageResourceName is null.

Remarks

The parameters subCategoryResourceName, warningCode, helpKeyword, and file can be null.

The parameters lineNumber, columnNumber, endLineNumber, and endColumnNumber should be set to 0 if they are not available.

Applies to