Partager via


TeamFoundationBuildService.DeleteBuilds Method

Deletes builds and supporting data. Labels, test results, and test impact data are deleted synchronously.

Build binaries and symbols are queued and deleted as a background job.

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

Syntax

'Declaration
Public Function DeleteBuilds ( _
    requestContext As TeamFoundationRequestContext, _
    uris As IList(Of String), _
    options As DeleteOptions, _
    throwIfInvalidUri As Boolean _
) As List(Of BuildDeletionResult)
public List<BuildDeletionResult> DeleteBuilds(
    TeamFoundationRequestContext requestContext,
    IList<string> uris,
    DeleteOptions options,
    bool throwIfInvalidUri
)
public:
List<BuildDeletionResult^>^ DeleteBuilds(
    TeamFoundationRequestContext^ requestContext, 
    IList<String^>^ uris, 
    DeleteOptions options, 
    bool throwIfInvalidUri
)
member DeleteBuilds : 
        requestContext:TeamFoundationRequestContext * 
        uris:IList<string> * 
        options:DeleteOptions * 
        throwIfInvalidUri:bool -> List<BuildDeletionResult> 
public function DeleteBuilds(
    requestContext : TeamFoundationRequestContext, 
    uris : IList<String>, 
    options : DeleteOptions, 
    throwIfInvalidUri : boolean
) : List<BuildDeletionResult>

Parameters

  • throwIfInvalidUri
    Type: System.Boolean

    True to throw an exception for a build that does not exist, false otherwise.

Return Value

Type: System.Collections.Generic.List<BuildDeletionResult>
A list of results indicating success or failure for particular operations during the delete.

.NET Framework Security

See Also

Reference

TeamFoundationBuildService Class

Microsoft.TeamFoundation.Build.Server Namespace