InformationNodeConverters.AddBuildWarning Method (IBuildInformation, 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
'Declaração
<ExtensionAttribute> _
Public Shared Function AddBuildWarning ( _
buildInformation As IBuildInformation, _
message As String, _
timestamp As DateTime _
) As IBuildWarning
public static IBuildWarning AddBuildWarning(
this IBuildInformation buildInformation,
string message,
DateTime timestamp
)
[ExtensionAttribute]
public:
static IBuildWarning^ AddBuildWarning(
IBuildInformation^ buildInformation,
String^ message,
DateTime timestamp
)
static member AddBuildWarning :
buildInformation:IBuildInformation *
message:string *
timestamp:DateTime -> IBuildWarning
public static function AddBuildWarning(
buildInformation : IBuildInformation,
message : String,
timestamp : DateTime
) : IBuildWarning
Parameters
- buildInformation
Type: Microsoft.TeamFoundation.Build.Client.IBuildInformation
The build information to which the warning will be added.
- message
Type: System.String
The warning message.
- timestamp
Type: System.DateTime
The time of the warning.
Return Value
Type: Microsoft.TeamFoundation.Build.Client.IBuildWarning
The added 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
- 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.