BuildWebService.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 might be thrown if this case is encountered. The add is transactional across all definitions so that if one add fails, then 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
definitions
Type: array<Microsoft.TeamFoundation.Build.Server.Compatibility.BuildDefinition2010[]The BuildDefinitions that should be added.
Return Value
Type: System.Collections.Generic.List<BuildDefinition2010>
A list of BuildDefinition objects successfully added to the server.
.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.
See Also
Reference
Microsoft.TeamFoundation.Build.Server.Compatibility Namespace