Partilhar via


Método RepositoryExtensions.Rollback

Reverte alterações em uma determinada árvore para um intervalo de versão específico.

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

Sintaxe

'Declaração
<WebMethodAttribute> _
Public Function Rollback ( _
    workspaceName As String, _
    workspaceOwner As String, _
    items As ItemSpec(), _
    itemVersion As VersionSpec, _
    from As VersionSpec, _
    to As VersionSpec, _
    rollbackOptions As Integer, _
    lockLevel As LockLevel, _
    <OutAttribute> ByRef conflicts As StreamingCollection(Of Conflict), _
    <OutAttribute> ByRef failures As StreamingCollection(Of Failure), _
    propertyNameFilters As String(), _
    <OutAttribute> ByRef changePendedFlags As Integer _
) As StreamingCollection(Of GetOperation)
[WebMethodAttribute]
public StreamingCollection<GetOperation> Rollback(
    string workspaceName,
    string workspaceOwner,
    ItemSpec[] items,
    VersionSpec itemVersion,
    VersionSpec from,
    VersionSpec to,
    int rollbackOptions,
    LockLevel lockLevel,
    out StreamingCollection<Conflict> conflicts,
    out StreamingCollection<Failure> failures,
    string[] propertyNameFilters,
    out int changePendedFlags
)

Parâmetros

  • workspaceName
    Tipo: System.String
    O nome do espaço de trabalho.
  • workspaceOwner
    Tipo: System.String
    O proprietário do espaço de trabalho.
  • rollbackOptions
    Tipo: System.Int32
    Opções, correspondências anterior com enumeração de RollbackOptions.
  • propertyNameFilters
    Tipo: array<System.String[]
    A lista de propriedades a ser retornada com operações get.

Valor de retorno

Tipo: Microsoft.TeamFoundation.Framework.Server.StreamingCollection<GetOperation>
Lista de GetOperations para atualizar o cliente.

Segurança do .NET Framework

Consulte também

Referência

RepositoryExtensions Classe

Namespace Microsoft.TeamFoundation.VersionControl.Server