Partager via


BuildWebService4.DeleteBuilds Method

Deletes the builds that correspond to the given URIs. If a given build does not exist, then it is silently ignored. If this method does not throw any exceptions, then it can be assumed that the Build part of the delete went okay. Non-fatal errors such as test result deletion failures—other than permission problems—and drop-location access issues are just logged to the event log and are not considered errors.

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

Syntax

'Declaration
<WebMethodAttribute> _
Public Function DeleteBuilds ( _
    uris As String(), _
    deleteOptions As DeleteOptions _
) As List(Of BuildDeletionResult)
[WebMethodAttribute]
public List<BuildDeletionResult> DeleteBuilds(
    string[] uris,
    DeleteOptions deleteOptions
)
[WebMethodAttribute]
public:
List<BuildDeletionResult^>^ DeleteBuilds(
    array<String^>^ uris, 
    DeleteOptions deleteOptions
)
[<WebMethodAttribute>]
member DeleteBuilds : 
        uris:string[] * 
        deleteOptions:DeleteOptions -> List<BuildDeletionResult> 
public function DeleteBuilds(
    uris : String[], 
    deleteOptions : DeleteOptions
) : List<BuildDeletionResult>

Parameters

  • uris
    Type: array<System.String[]

    The URIs that should be deleted from the server.

Return Value

Type: System.Collections.Generic.List<BuildDeletionResult>
A list of BuildDeletionResult structures describing any non-fatal errors encountered.

.NET Framework Security

See Also

Reference

BuildWebService4 Class

Microsoft.TeamFoundation.Build.Server Namespace