Bagikan melalui


Task.LogError Method

Helper to log an error string if the task is running within MSBuild.

Namespace:  Microsoft.TeamFoundation.Build.Tasks
Assembly:  Microsoft.TeamFoundation.Build.ProcessComponents (in Microsoft.TeamFoundation.Build.ProcessComponents.dll)

Syntax

'Declaration
Protected Sub LogError ( _
    errorMessage As String _
)
protected void LogError(
    string errorMessage
)
protected:
void LogError(
    String^ errorMessage
)
member LogError : 
        errorMessage:string -> unit
protected function LogError(
    errorMessage : String
)

Parameters

  • errorMessage
    Type: System.String

    String to be logged as an error.

.NET Framework Security

See Also

Reference

Task Class

Microsoft.TeamFoundation.Build.Tasks Namespace