Megosztás a következőn keresztül:


Workspace.Rollback Method (VersionSpec, VersionSpec, LockLevel, RollbackOptions)

Pends a rollback for all changes between the specified versions.

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

Syntax

'Declaration
Public Function Rollback ( _
    versionFrom As VersionSpec, _
    versionTo As VersionSpec, _
    lockLevel As LockLevel, _
    options As RollbackOptions _
) As GetStatus
public GetStatus Rollback(
    VersionSpec versionFrom,
    VersionSpec versionTo,
    LockLevel lockLevel,
    RollbackOptions options
)
public:
GetStatus^ Rollback(
    VersionSpec^ versionFrom, 
    VersionSpec^ versionTo, 
    LockLevel lockLevel, 
    RollbackOptions options
)
member Rollback : 
        versionFrom:VersionSpec * 
        versionTo:VersionSpec * 
        lockLevel:LockLevel * 
        options:RollbackOptions -> GetStatus
public function Rollback(
    versionFrom : VersionSpec, 
    versionTo : VersionSpec, 
    lockLevel : LockLevel, 
    options : RollbackOptions
) : GetStatus

Parameters

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Client.GetStatus
A GetStatus object that indicates how many operations, conflicts, errors, and so on occurred when the Get operation was being processed.

.NET Framework Security

See Also

Reference

Workspace Class

Rollback Overload

Microsoft.TeamFoundation.VersionControl.Client Namespace