다음을 통해 공유


RepositoryExtensions.Rollback 메서드

특정 버전 범위를 지정 된 트리에서 변경 내용을 롤백합니다.

네임스페이스:  Microsoft.TeamFoundation.VersionControl.Server
어셈블리:  Microsoft.TeamFoundation.VersionControl.Server(Microsoft.TeamFoundation.VersionControl.Server.dll)

구문

‘선언
<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
)

매개 변수

  • workspaceName
    형식: System.String
    작업 영역의 이름입니다.
  • workspaceOwner
    형식: System.String
    작업 영역의 소유자입니다.
  • rollbackOptions
    형식: System.Int32
    옵션, RollbackOptions 열거형과 일치 합니다.
  • propertyNameFilters
    형식: array<System.String[]
    가져오기 작업을 반환 하는 속성의 목록입니다.

반환 값

형식: Microsoft.TeamFoundation.Framework.Server.StreamingCollection<GetOperation>
클라이언트 업데이트에 대 한 GetOperations의 목록입니다.

.NET Framework 보안

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

참고 항목

참조

RepositoryExtensions 클래스

Microsoft.TeamFoundation.VersionControl.Server 네임스페이스