InformationNodeConverters.AddBuildError Method (IBuildInformation, String, String, String, Int32, Int32, String, String, DateTime)

Adds an error to the specified build information object. Does not save to the server.

Namespace: Microsoft.TeamFoundation.Build.Client
Assembly: Microsoft.TeamFoundation.Build.Client (in Microsoft.TeamFoundation.Build.Client.dll)


<ExtensionAttribute> _
Public Shared Function AddBuildError ( _
    buildInformation As IBuildInformation, _
    errorType As String, _
    file As String, _
    serverPath As String, _
    lineNumber As Integer, _
    endLineNumber As Integer, _
    code As String, _
    message As String, _
    timestamp As DateTime _
) As IBuildError
public static IBuildError AddBuildError(
    this IBuildInformation buildInformation,
    string errorType,
    string file,
    string serverPath,
    int lineNumber,
    int endLineNumber,
    string code,
    string message,
    DateTime timestamp
static IBuildError^ AddBuildError(
    IBuildInformation^ buildInformation, 
    String^ errorType, 
    String^ file, 
    String^ serverPath, 
    int lineNumber, 
    int endLineNumber, 
    String^ code, 
    String^ message, 
    DateTime timestamp
static member AddBuildError : 
        buildInformation:IBuildInformation * 
        errorType:string * 
        file:string * 
        serverPath:string * 
        lineNumber:int * 
        endLineNumber:int * 
        code:string * 
        message:string * 
        timestamp:DateTime -> IBuildError
public static function AddBuildError(
    buildInformation : IBuildInformation, 
    errorType : String, 
    file : String, 
    serverPath : String, 
    lineNumber : int, 
    endLineNumber : int, 
    code : String, 
    message : String, 
    timestamp : DateTime
) : IBuildError


  • serverPath
    Type: System.String

    The server path in version control for the file.

  • lineNumber
    Type: System.Int32

    The line number on which the error began.

  • endLineNumber
    Type: System.Int32

    The line number of which the error ended.

Return Value

Type: Microsoft.TeamFoundation.Build.Client.IBuildError
The error node.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IBuildInformation. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

.NET Framework Security

See Also


InformationNodeConverters Class

AddBuildError Overload

Microsoft.TeamFoundation.Build.Client Namespace