共用方式為


VersionControlIntegration.DeleteProject 方法

這是已刪除之 Team 專案 TfsDeleteProject.exe 呼叫的方法。

命名空間:  Microsoft.TeamFoundation.VersionControl.Server
組件:  Microsoft.TeamFoundation.VersionControl.Server (在 Microsoft.TeamFoundation.VersionControl.Server.dll 中)

語法

'宣告
<WebMethodAttribute> _
<SoapDocumentMethodAttribute(Binding := "IProjectMaintenanceBinding", Action := "https://schemas.microsoft.com/TeamFoundation/2005/06/Services/Admin/03/DeleteProject")> _
Public Function DeleteProject ( _
    projectUri As String _
) As Boolean
[WebMethodAttribute]
[SoapDocumentMethodAttribute(Binding = "IProjectMaintenanceBinding", Action = "https://schemas.microsoft.com/TeamFoundation/2005/06/Services/Admin/03/DeleteProject")]
public bool DeleteProject(
    string projectUri
)

參數

傳回值

類型:System.Boolean
如果資料夾存在且已成功刪除,則為 true

.NET Framework 安全性

請參閱

參考

VersionControlIntegration 類別

Microsoft.TeamFoundation.VersionControl.Server 命名空間