共用方式為


Repository.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 CheckinOptions, _
    <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,
    CheckinOptions checkinOptions,
    out StreamingCollection<Failure> failures,
    bool deferCheckIn,
    int checkInTicket
)

參數

  • workspaceName
    型別:System.String
    包含變更送出的工作區名稱。
  • serverItems
    型別:array<System.String[]
    項目清單和簽入。
  • deferCheckIn
    型別:System.Boolean
    為 True,如果簽入應該延到,並 checkinTicket 應該指定,如果尚未提供。錯誤對呼叫的簽入。
  • checkInTicket
    型別:System.Int32
    請傳遞 0,如果這是或非延後的簽入提示,則為,如果這是第一次呼叫會延後簽入工作階段中。否則,請傳遞從先前呼叫傳回的 checkInTicket。

傳回值

型別:Microsoft.TeamFoundation.VersionControl.Server.CheckinResult
這會傳回與變更集所建立的新版本中的變更簽入結果。

備註

資訊變更和數字屬性會被忽略。 應該讓擁有者和 CreationDate 其預設值,除非您代表其他人簽入,或檢查在匯入的變更 (轉換工具)。

.NET Framework 安全性

請參閱

參考

Repository 類別

Microsoft.TeamFoundation.VersionControl.Server 命名空間