Compartir a través de


InformationNodeConverters.AddBuildMessage Method

Adds a message to the specified build. Does not save to the server.

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

Syntax

'Declaración
<ExtensionAttribute> _
Public Shared Function AddBuildMessage ( _
    buildInformation As IBuildInformation, _
    message As String, _
    importance As BuildMessageImportance, _
    timestamp As DateTime _
) As IBuildMessage
public static IBuildMessage AddBuildMessage(
    this IBuildInformation buildInformation,
    string message,
    BuildMessageImportance importance,
    DateTime timestamp
)
[ExtensionAttribute]
public:
static IBuildMessage^ AddBuildMessage(
    IBuildInformation^ buildInformation, 
    String^ message, 
    BuildMessageImportance importance, 
    DateTime timestamp
)
static member AddBuildMessage : 
        buildInformation:IBuildInformation * 
        message:string * 
        importance:BuildMessageImportance * 
        timestamp:DateTime -> IBuildMessage 
public static function AddBuildMessage(
    buildInformation : IBuildInformation, 
    message : String, 
    importance : BuildMessageImportance, 
    timestamp : DateTime
) : IBuildMessage

Parameters

Return Value

Type: Microsoft.TeamFoundation.Build.Client.IBuildMessage
The message 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

Microsoft.TeamFoundation.Build.Client Namespace