Поделиться через


BuildService.AddBuildDefinitions Method

Adds the BuildDefinition objects to the server. If the URI field is entered before being sent to the server, it will be ignored. Duplicate build definitions may not exist at the same path. Therefore an exception may be thrown if this case is encountered. The add is transactional across all definitions so that if one add fails, all of the adds fail.

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

Syntax

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

Parameters

Return Value

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

.NET Framework Security

See Also

Reference

BuildService Class

Microsoft.TeamFoundation.Build.Server.Compatibility Namespace