Exec.LogEventsFromTextOutput Method
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Logs the specified single line of text as an error or warning if the single line matched custom or standard error and warning formats or as a regular message if IgnoreStandardErrorWarningFormat is set to true and no custom format matched.
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.Tasks
Assembly: Microsoft.Build.Tasks.Core (in Microsoft.Build.Tasks.Core.dll)
Syntax
'Declaration
Protected Overrides Sub LogEventsFromTextOutput ( _
singleLine As String, _
messageImportance As MessageImportance _
)
protected override void LogEventsFromTextOutput(
string singleLine,
MessageImportance messageImportance
)
protected:
virtual void LogEventsFromTextOutput(
String^ singleLine,
MessageImportance messageImportance
) override
abstract LogEventsFromTextOutput :
singleLine:string *
messageImportance:MessageImportance -> unit
override LogEventsFromTextOutput :
singleLine:string *
messageImportance:MessageImportance -> unit
protected override function LogEventsFromTextOutput(
singleLine : String,
messageImportance : MessageImportance
)
Parameters
singleLine
Type: System.StringSingle line from the output to parse.
messageImportance
Type: Microsoft.Build.Framework.MessageImportanceThe importance to log the message with.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.