Workspace.PendAdd Method (String, Boolean)
Queues files, folders, and subitems for addition to the version-control repository.
Namespace: Microsoft.TeamFoundation.VersionControl.Client
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
Syntax
'Declaration
Public Function PendAdd ( _
path As String, _
isRecursive As Boolean _
) As Integer
public int PendAdd(
string path,
bool isRecursive
)
public:
int PendAdd(
String^ path,
bool isRecursive
)
member PendAdd :
path:string *
isRecursive:bool -> int
public function PendAdd(
path : String,
isRecursive : boolean
) : int
Parameters
path
Type: System.StringA local path that represents the items to be added.
isRecursive
Type: System.BooleanTrue to recurse through subitems; otherwise, false.
Return Value
Type: System.Int32
The number of files or folders that were queued for addition.
Remarks
For more information about how to use this method, see Extending Version Control.
.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.