共用方式為


Workspace.PendAdd Method (array<String , Boolean)

Queues files or folders for addition to the repository.

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)

Syntax

'宣告
Public Function PendAdd ( _
    paths As String(), _
    isRecursive As Boolean _
) As Integer
public int PendAdd(
    string[] paths,
    bool isRecursive
)
public:
int PendAdd(
    array<String^>^ paths, 
    bool isRecursive
)
member PendAdd : 
        paths:string[] * 
        isRecursive:bool -> int 
public function PendAdd(
    paths : String[], 
    isRecursive : boolean
) : int

Parameters

  • paths
    Type: array<System.String[]
    An array of paths representing items that should be added.
  • isRecursive
    Type: System.Boolean
    True to recurse through subitems. False to not recurse.

Return Value

Type: System.Int32
The number of files or folders queued for addition.

.NET Framework Security

See Also

Reference

Workspace Class

PendAdd Overload

Microsoft.TeamFoundation.VersionControl.Client Namespace