TeamFoundationVersionControlService.Rollback Method (TeamFoundationRequestContext, String, String, array<ItemSpec[], VersionSpec, VersionSpec, VersionSpec, Int32, LockLevel, array<String[], array<String )
Rolls back changes in a given tree for a specific version range.
Namespace: Microsoft.TeamFoundation.VersionControl.Server
Assembly: Microsoft.TeamFoundation.VersionControl.Server (in Microsoft.TeamFoundation.VersionControl.Server.dll)
Syntax
'Declaration
Public Function Rollback ( _
requestContext As TeamFoundationRequestContext, _
workspaceName As String, _
workspaceOwner As String, _
items As ItemSpec(), _
itemVersion As VersionSpec, _
from As VersionSpec, _
to As VersionSpec, _
rollbackOptions As Integer, _
lockLevel As LockLevel, _
itemPropertyFilters As String(), _
itemAttributeFilters As String() _
) As TeamFoundationDataReader
public TeamFoundationDataReader Rollback(
TeamFoundationRequestContext requestContext,
string workspaceName,
string workspaceOwner,
ItemSpec[] items,
VersionSpec itemVersion,
VersionSpec from,
VersionSpec to,
int rollbackOptions,
LockLevel lockLevel,
string[] itemPropertyFilters,
string[] itemAttributeFilters
)
public:
TeamFoundationDataReader^ Rollback(
TeamFoundationRequestContext^ requestContext,
String^ workspaceName,
String^ workspaceOwner,
array<ItemSpec^>^ items,
VersionSpec^ itemVersion,
VersionSpec^ from,
VersionSpec^ to,
int rollbackOptions,
LockLevel lockLevel,
array<String^>^ itemPropertyFilters,
array<String^>^ itemAttributeFilters
)
member Rollback :
requestContext:TeamFoundationRequestContext *
workspaceName:string *
workspaceOwner:string *
items:ItemSpec[] *
itemVersion:VersionSpec *
from:VersionSpec *
to:VersionSpec *
rollbackOptions:int *
lockLevel:LockLevel *
itemPropertyFilters:string[] *
itemAttributeFilters:string[] -> TeamFoundationDataReader
public function Rollback(
requestContext : TeamFoundationRequestContext,
workspaceName : String,
workspaceOwner : String,
items : ItemSpec[],
itemVersion : VersionSpec,
from : VersionSpec,
to : VersionSpec,
rollbackOptions : int,
lockLevel : LockLevel,
itemPropertyFilters : String[],
itemAttributeFilters : String[]
) : TeamFoundationDataReader
Parameters
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context.
workspaceName
Type: System.StringThe name of the workspace.
workspaceOwner
Type: System.StringThe owner of the workspace.
- items
Type: array<Microsoft.TeamFoundation.VersionControl.Server.ItemSpec[]
itemVersion
Type: Microsoft.TeamFoundation.VersionControl.Server.VersionSpecVersion spec used for identifying the item. Ignored when ItemSpec is a local item.
from
Type: Microsoft.TeamFoundation.VersionControl.Server.VersionSpecVersion to rollback from.
to
Type: Microsoft.TeamFoundation.VersionControl.Server.VersionSpecVersion to rollback to.
rollbackOptions
Type: System.Int32Options, matches up with RollbackOptions enum.
lockLevel
Type: Microsoft.TeamFoundation.VersionControl.Server.LockLevelThe lock to apply to the items involved in the rollback.
- itemPropertyFilters
Type: array<System.String[]
- itemAttributeFilters
Type: array<System.String[]
Return Value
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationDataReader
TeamFoundationDataReader with results in the following order: GetOperation[] - List of GetOperations for updating the client. Conflict[] - The list of pending items that are unresolved. If resolved then contains details of rollback operation. Failure[] - The list of items which did not rollback.
.NET Framework Security
- 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.