Partager via


BuildWebService4.AddBuildDefinitions Method

Adds the BuildDefinition objects to the server. If the URI field is entered before being sent to the server, then it will be ignored. Duplicate build definitions cannot exist at the same path. Therefore, an exception may be thrown if this case is encountered. The add is transactional across all definitions in such a way that if one add fails then the whole add fails.

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

Syntax

'Declaration
<WebMethodAttribute> _
Public Function AddBuildDefinitions ( _
    definitions As BuildDefinition() _
) As List(Of BuildDefinition)
[WebMethodAttribute]
public List<BuildDefinition> AddBuildDefinitions(
    BuildDefinition[] definitions
)
[WebMethodAttribute]
public:
List<BuildDefinition^>^ AddBuildDefinitions(
    array<BuildDefinition^>^ definitions
)
[<WebMethodAttribute>]
member AddBuildDefinitions : 
        definitions:BuildDefinition[] -> List<BuildDefinition> 
public function AddBuildDefinitions(
    definitions : BuildDefinition[]
) : List<BuildDefinition>

Parameters

Return Value

Type: System.Collections.Generic.List<BuildDefinition>
A list of BuildDefinition objects successfully added to the server.

.NET Framework Security

See Also

Reference

BuildWebService4 Class

Microsoft.TeamFoundation.Build.Server Namespace