Partager via


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

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)

Syntax

'Déclaration
<ExtensionAttribute> _
Public Shared Function AddBuildWarning ( _
    buildInformation As IBuildInformation, _
    file As String, _
    lineNumber As Integer, _
    endLineNumber As Integer, _
    code As String, _
    message As String, _
    timestamp As DateTime _
) As IBuildWarning
public static IBuildWarning AddBuildWarning(
    this IBuildInformation buildInformation,
    string file,
    int lineNumber,
    int endLineNumber,
    string code,
    string message,
    DateTime timestamp
)
[ExtensionAttribute]
public:
static IBuildWarning^ AddBuildWarning(
    IBuildInformation^ buildInformation, 
    String^ file, 
    int lineNumber, 
    int endLineNumber, 
    String^ code, 
    String^ message, 
    DateTime timestamp
)
static member AddBuildWarning : 
        buildInformation:IBuildInformation * 
        file:string * 
        lineNumber:int * 
        endLineNumber:int * 
        code:string * 
        message:string * 
        timestamp:DateTime -> IBuildWarning 
public static function AddBuildWarning(
    buildInformation : IBuildInformation, 
    file : String, 
    lineNumber : int, 
    endLineNumber : int, 
    code : String, 
    message : String, 
    timestamp : DateTime
) : IBuildWarning

Parameters

  • file
    Type: System.String
    The file in which the warning occurred.
  • lineNumber
    Type: System.Int32
    The line number on which the warning began.
  • endLineNumber
    Type: System.Int32
    The line number on which the warning ended.

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

.NET Framework Security

See Also

Reference

InformationNodeConverters Class

AddBuildWarning Overload

Microsoft.TeamFoundation.Build.Client Namespace