This documentation is archived and is not being maintained.
InformationNodeConverters::AddBuildError Method (IBuildInformation, String, String, String, Int32, Int32, String, String, DateTime)
Visual Studio 2013
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: static IBuildError^ AddBuildError( IBuildInformation^ buildInformation, String^ errorType, String^ file, String^ serverPath, int lineNumber, int endLineNumber, String^ code, String^ message, DateTime timestamp )
Parameters
- buildInformation
- Type: Microsoft.TeamFoundation.Build.Client::IBuildInformation
The build information object to which the error will be added.
- errorType
- Type: System::String
The type of the error.
- file
- Type: System::String
The file in which the error occurred.
- 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.
- code
- Type: System::String
The error code.
- message
- Type: System::String
The error message.
- timestamp
- Type: System::DateTime
The time of the error.
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).- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Show: