Workspace.PendAdd Method (array<String , Boolean, String, LockLevel, 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
'Declaración
Public Function PendAdd ( _
paths As String(), _
isRecursive As Boolean, _
fileType As String, _
lockLevel As LockLevel, _
treatMissingItemsAsFiles As Boolean _
) As Integer
public int PendAdd(
string[] paths,
bool isRecursive,
string fileType,
LockLevel lockLevel,
bool treatMissingItemsAsFiles
)
public:
int PendAdd(
array<String^>^ paths,
bool isRecursive,
String^ fileType,
LockLevel lockLevel,
bool treatMissingItemsAsFiles
)
member PendAdd :
paths:string[] *
isRecursive:bool *
fileType:string *
lockLevel:LockLevel *
treatMissingItemsAsFiles:bool -> int
public function PendAdd(
paths : String[],
isRecursive : boolean,
fileType : String,
lockLevel : LockLevel,
treatMissingItemsAsFiles : 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.
- fileType
Type: System.String
The file type for the new item. May be null.
- lockLevel
Type: Microsoft.TeamFoundation.VersionControl.Client.LockLevel
The lock level to apply to each file added.
- treatMissingItemsAsFiles
Type: System.Boolean
True to assume items missing on disk are files.
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.