Share via


TeamProjectDeleter.Delete Method

Tries to delete the team project. Throws an exception if it cannot.

Namespace:  Microsoft.TeamFoundation.Client
Assembly:  Microsoft.TeamFoundation (in Microsoft.TeamFoundation.dll)

Syntax

'Declaration
Public Sub Delete
'Usage
Dim instance As TeamProjectDeleter

instance.Delete()
public void Delete()
public:
void Delete()
public function Delete()

Exceptions

Exception Condition
ArgumentException

Thrown if the project is null or empty.

[DeletionException]

Thrown if trying to delete a project that has no unique domain, if it is unable to connect with the data store, or if the project was not found.

Remarks

If the 'force' parameter is set in the constructor, Delete will not throw exceptions if it cannot delete any one part of the project. Instead, it will continue to try to delete individual components.

.NET Framework Security

See Also

Reference

TeamProjectDeleter Class

TeamProjectDeleter Members

Microsoft.TeamFoundation.Client Namespace