共用方式為


Workspace.PendAdd 方法 (array<String[], Boolean)

佇列檔案或資料夾加入至版本控制儲存機制。

命名空間:  Microsoft.TeamFoundation.VersionControl.Client
組件:  Microsoft.TeamFoundation.VersionControl.Client (在 Microsoft.TeamFoundation.VersionControl.Client.dll 中)

語法

'宣告
Public Function PendAdd ( _
    paths As String(), _
    isRecursive As Boolean _
) As Integer
public int PendAdd(
    string[] paths,
    bool isRecursive
)

參數

  • paths
    類型:array<System.String[]
    表示項目應加入的路徑陣列。
  • isRecursive
    類型:System.Boolean
    true 表示要遞迴經由子項目;則為,否則為 false。

傳回值

類型:System.Int32
為加入佇列的檔案或資料夾的數目。

.NET Framework 安全性

請參閱

參考

Workspace 類別

PendAdd 多載

Microsoft.TeamFoundation.VersionControl.Client 命名空間