Share via


TeamFoundationBuildService.DeleteTeamProject Method

Deletes all objects that belong to the specified team project.

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

Syntax

'Declaration
Public Function DeleteTeamProject ( _
    requestContext As TeamFoundationRequestContext, _
    projectUri As String _
) As Boolean
public bool DeleteTeamProject(
    TeamFoundationRequestContext requestContext,
    string projectUri
)
public:
bool DeleteTeamProject(
    TeamFoundationRequestContext^ requestContext, 
    String^ projectUri
)
member DeleteTeamProject : 
        requestContext:TeamFoundationRequestContext * 
        projectUri:string -> bool
public function DeleteTeamProject(
    requestContext : TeamFoundationRequestContext, 
    projectUri : String
) : boolean

Parameters

  • projectUri
    Type: System.String

    The URI of the team project to delete.

Return Value

Type: System.Boolean
True if the delete was successful; false otherwise.

.NET Framework Security

  • [M:F:Microsoft.TeamFoundation.Integration.Server.AuthorizationProjectPermissions.Delete] 

    The caller must have Delete permission for the target team project.

  • [M:F:Microsoft.TeamFoundation.Integration.Server.AuthorizationProjectPermissions.Delete] 

    The caller must have [Delete] permission for the target team project.

  • 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

TeamFoundationBuildService Class

Microsoft.TeamFoundation.Build.Server Namespace