次の方法で共有


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.String

    Single line from the output to parse.

.NET Framework Security

See Also

Reference

Exec Class

Microsoft.Build.Tasks Namespace