Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Adds a warning 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)
public static IBuildWarning AddBuildWarning(
	this IBuildInformation buildInformation,
	string file,
	int lineNumber,
	int endLineNumber,
	string code,
	string message,
	DateTime timestamp,
	string warningType


Type: Microsoft.TeamFoundation.Build.Client.IBuildInformation

The build information to which the warning will be added.

Type: System.String

The file in which the warning occurred.

Type: System.Int32

The line number on which the warning began.

Type: System.Int32

The line number on which the warning ended.

Type: System.String

The warning code.

Type: System.String

The warning message.

Type: System.DateTime

The time of the warning.

Type: System.String

The type of the warning.

Return Value

Type: Microsoft.TeamFoundation.Build.Client.IBuildWarning
The warning 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).
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.