BuildWebService.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.Compatibility
Assembly: Microsoft.TeamFoundation.Build.Server (in Microsoft.TeamFoundation.Build.Server.dll)
Syntax
'Declaration
<WebMethodAttribute> _
Public Function DeleteBuilds ( _
uris As String(), _
deleteOptions As DeleteOptions2010 _
) As List(Of BuildDeletionResult2010)
[WebMethodAttribute]
public List<BuildDeletionResult2010> DeleteBuilds(
string[] uris,
DeleteOptions2010 deleteOptions
)
[WebMethodAttribute]
public:
List<BuildDeletionResult2010^>^ DeleteBuilds(
array<String^>^ uris,
DeleteOptions2010 deleteOptions
)
[<WebMethodAttribute>]
member DeleteBuilds :
uris:string[] *
deleteOptions:DeleteOptions2010 -> List<BuildDeletionResult2010>
public function DeleteBuilds(
uris : String[],
deleteOptions : DeleteOptions2010
) : List<BuildDeletionResult2010>
Parameters
uris
Type: array<System.String[]The URIs that should be deleted from the server.
- deleteOptions
Type: Microsoft.TeamFoundation.Build.Server.Compatibility.DeleteOptions2010
Return Value
Type: System.Collections.Generic.List<BuildDeletionResult2010>
A list of BuildDeletionResult structures describing any non-fatal errors that were encountered.
.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