Delen via


TeamFoundationVersionControlService.DeleteTeamProjectFolder Method

This is used to delete a team project folder.

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

Syntax

'Declaration
Public Function DeleteTeamProjectFolder ( _
    requestContext As TeamFoundationRequestContext, _
    teamProject As String, _
    teamProjectUri As String, _
    startCleanup As Boolean, _
    deleteWorkspaceState As Boolean _
) As Boolean
public bool DeleteTeamProjectFolder(
    TeamFoundationRequestContext requestContext,
    string teamProject,
    string teamProjectUri,
    bool startCleanup,
    bool deleteWorkspaceState
)
public:
bool DeleteTeamProjectFolder(
    TeamFoundationRequestContext^ requestContext, 
    String^ teamProject, 
    String^ teamProjectUri, 
    bool startCleanup, 
    bool deleteWorkspaceState
)
member DeleteTeamProjectFolder : 
        requestContext:TeamFoundationRequestContext * 
        teamProject:string * 
        teamProjectUri:string * 
        startCleanup:bool * 
        deleteWorkspaceState:bool -> bool
public function DeleteTeamProjectFolder(
    requestContext : TeamFoundationRequestContext, 
    teamProject : String, 
    teamProjectUri : String, 
    startCleanup : boolean, 
    deleteWorkspaceState : boolean
) : boolean

Parameters

  • teamProjectUri
    Type: System.String

    The URI of the team project.

  • startCleanup
    Type: System.Boolean

    True if the project folder should be removed immediately.

  • deleteWorkspaceState
    Type: System.Boolean

    True if local version rows, pending adds, and working folder mappings should be removed under this folder.

Return Value

Type: System.Boolean
True if the operation succeeded and false if it was not successful.

.NET Framework Security

See Also

Reference

TeamFoundationVersionControlService Class

Microsoft.TeamFoundation.VersionControl.Server Namespace