共用方式為


TeamFoundationVersionControlService.ResetCheckinDates Method

Resets the checkin dates of all changesets in the TPC to before the last date.

This will be used by the migration tools, and will only work on an "empty" TPC.

Empty means that only the following checkins could have occurred.

a. $/ b. Team Project Creation c. Team Project Creation + 1 changeset - for Build Definitions.

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

Syntax

'Declaration
Public Sub ResetCheckinDates ( _
    requestContext As TeamFoundationRequestContext, _
    lastCheckinDate As DateTime _
)
public void ResetCheckinDates(
    TeamFoundationRequestContext requestContext,
    DateTime lastCheckinDate
)
public:
void ResetCheckinDates(
    TeamFoundationRequestContext^ requestContext, 
    DateTime lastCheckinDate
)
member ResetCheckinDates : 
        requestContext:TeamFoundationRequestContext * 
        lastCheckinDate:DateTime -> unit
public function ResetCheckinDates(
    requestContext : TeamFoundationRequestContext, 
    lastCheckinDate : DateTime
)

Parameters

  • lastCheckinDate
    Type: System.DateTime

    The date the last changeset in the TPC should be updated to.

.NET Framework Security

See Also

Reference

TeamFoundationVersionControlService Class

Microsoft.TeamFoundation.VersionControl.Server Namespace