共用方式為


InformationNodeConverters.AddBuildError Method (IBuildInformation, 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)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function AddBuildError ( _
    buildInformation As IBuildInformation, _
    message As String, _
    timestamp As DateTime _
) As IBuildError
public static IBuildError AddBuildError(
    this IBuildInformation buildInformation,
    string message,
    DateTime timestamp
)
[ExtensionAttribute]
public:
static IBuildError^ AddBuildError(
    IBuildInformation^ buildInformation, 
    String^ message, 
    DateTime timestamp
)
static member AddBuildError : 
        buildInformation:IBuildInformation * 
        message:string * 
        timestamp:DateTime -> IBuildError
public static function AddBuildError(
    buildInformation : IBuildInformation, 
    message : String, 
    timestamp : DateTime
) : IBuildError

Parameters

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

Reference

InformationNodeConverters Class

AddBuildError Overload

Microsoft.TeamFoundation.Build.Client Namespace