Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- 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.