다음을 통해 공유


Repository4.CheckIn 메서드

집합을의 보류 중인 변경 내용 커밋합니다. 체크 인 큰 파일 커밋 호출 시퀀스의 일부입니다. 순서: 1. CheckPendingChanges를 호출 하 고 파일 및 폴더 체크 목록을 전달 합니다. 2입니다. 각 파일에 대해 UploadFile을 호출 합니다. 3. 체크 인을 호출 하 고 파일 및 폴더 (목록 # 1에서 일치 해야) 전달. CheckPendingChanges은 필요 하지만 호출자 업로드 파일 시간을 낭비 하기 전에 충돌 알림을 표시할 수 있습니다.

serverItems 하나 이상의 항목과 중복, 와일드 카드 문자가 포함 되어야 합니다.

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

구문

‘선언
<WebMethodAttribute> _
Public Function CheckIn ( _
    workspaceName As String, _
    ownerName As String, _
    serverItems As String(), _
    info As Changeset, _
    checkinNotificationInfo As CheckinNotificationInfo, _
    checkinOptions As Integer, _
    <OutAttribute> ByRef conflicts As StreamingCollection(Of Failure), _
    <OutAttribute> ByRef failures As StreamingCollection(Of Failure), _
    deferCheckIn As Boolean, _
    checkInTicket As Integer _
) As CheckinResult
[WebMethodAttribute]
public CheckinResult CheckIn(
    string workspaceName,
    string ownerName,
    string[] serverItems,
    Changeset info,
    CheckinNotificationInfo checkinNotificationInfo,
    int checkinOptions,
    out StreamingCollection<Failure> conflicts,
    out StreamingCollection<Failure> failures,
    bool deferCheckIn,
    int checkInTicket
)

매개 변수

  • workspaceName
    형식: System.String
    제출 하는 변경 내용이 포함 된 작업 영역의 이름입니다.
  • serverItems
    형식: array<System.String[]
    체크 인할 항목의 목록입니다.
  • checkinOptions
    형식: System.Int32
    체크 인 작업에 대 한 옵션입니다.
  • deferCheckIn
    형식: System.Boolean
    True 이면 체크 인 된 시기를 연기 해야 하 고는 checkinTicket을 제공 하는 없으면 할당.False 이면 commit이 호출을 사용 하 여 체크 인 합니다.
  • checkInTicket
    형식: System.Int32
    중 하나는 지연 되지 않은 체크 인, 또는 지연된 체크 세션의 첫 번째 호출의 경우 0을 전달 합니다.그렇지 않으면 이전 전화가에서 반환 된 checkInTicket를 전달 합니다.

반환 값

형식: Microsoft.TeamFoundation.VersionControl.Server.CheckinResult
이렇게 만든 변경 집합에 체크 인 결과 및 취소 된 변경 내용을 반환 합니다.

설명

변경 및 정보 숫자의 속성은 무시 됩니다. 소유자 및 CreationDate 두어야 기본값으로 검사에 가져온된 변경 (변환 도구) 또는 다른 사람 대신 체크 인하는 경우를 제외 합니다.

.NET Framework 보안

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

참고 항목

참조

Repository4 클래스

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