Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Queues files or folders for addition to the repository. This method can recurse through the specified path to queue subitems in addition to the items matched by the specified path.
Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
Syntax
'Declaration
Public Function PendAdd ( _
    paths As String(), _
    isRecursive As Boolean, _
    fileType As String, _
    lockLevel As LockLevel, _
    treatMissingItemsAsFiles As Boolean, _
    silent As Boolean, _
    applyLocalItemExclusions As Boolean _
) As Integer
public int PendAdd(
    string[] paths,
    bool isRecursive,
    string fileType,
    LockLevel lockLevel,
    bool treatMissingItemsAsFiles,
    bool silent,
    bool applyLocalItemExclusions
)
public:
int PendAdd(
    array<String^>^ paths, 
    bool isRecursive, 
    String^ fileType, 
    LockLevel lockLevel, 
    bool treatMissingItemsAsFiles, 
    bool silent, 
    bool applyLocalItemExclusions
)
member PendAdd : 
        paths:string[] * 
        isRecursive:bool * 
        fileType:string * 
        lockLevel:LockLevel * 
        treatMissingItemsAsFiles:bool * 
        silent:bool * 
        applyLocalItemExclusions:bool -> int
public function PendAdd(
    paths : String[], 
    isRecursive : boolean, 
    fileType : String, 
    lockLevel : LockLevel, 
    treatMissingItemsAsFiles : boolean, 
    silent : boolean, 
    applyLocalItemExclusions : boolean
) : int
Parameters
- paths 
 Type: array<System.String[]- A list of paths representing items that should be added. 
- isRecursive 
 Type: System.Boolean- A Boolean value indicating whether to recurse 
- fileType 
 Type: System.String- if non-null, the file type for the new item 
- lockLevel 
 Type: Microsoft.TeamFoundation.VersionControl.Client.LockLevel- the lock level to apply to each file added 
- treatMissingItemsAsFiles 
 Type: System.Boolean- whether items missing on disk should be assumed to be files 
- silent 
 Type: System.Boolean- Specifies whether server should return get ops 
- applyLocalItemExclusions 
 Type: System.Boolean- If true, applies the local item exclusion lists for items found by searching in a directory or matching a wildcard. 
Return Value
Type: System.Int32
The number of files or folders queued for addition
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.