PendAdd Method (String[], Boolean, String, LockLevel, Boolean, Boolean, Boolean)

Workspace.PendAdd Method (String[], Boolean, String, LockLevel, Boolean, Boolean, Boolean)

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)

public int PendAdd(
	string[] paths,
	bool isRecursive,
	string fileType,
	LockLevel lockLevel,
	bool treatMissingItemsAsFiles,
	bool silent,
	bool applyLocalItemExclusions
)

Parameters

paths
Type: 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

Show:
© 2016 Microsoft