Share via


Workspace.PendAdd Method (array<String , Boolean, String, LockLevel, Boolean, Boolean)

Queues files or folders 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 ( _
    paths As String(), _
    isRecursive As Boolean, _
    fileType As String, _
    lockLevel As LockLevel, _
    treatMissingItemsAsFiles As Boolean, _
    silent As Boolean _
) As Integer
public int PendAdd(
    string[] paths,
    bool isRecursive,
    string fileType,
    LockLevel lockLevel,
    bool treatMissingItemsAsFiles,
    bool silent
)
public:
int PendAdd(
    array<String^>^ paths, 
    bool isRecursive, 
    String^ fileType, 
    LockLevel lockLevel, 
    bool treatMissingItemsAsFiles, 
    bool silent
)
member PendAdd : 
        paths:string[] * 
        isRecursive:bool * 
        fileType:string * 
        lockLevel:LockLevel * 
        treatMissingItemsAsFiles:bool * 
        silent:bool -> int
public function PendAdd(
    paths : String[], 
    isRecursive : boolean, 
    fileType : String, 
    lockLevel : LockLevel, 
    treatMissingItemsAsFiles : boolean, 
    silent : boolean
) : int

Parameters

  • paths
    Type: array<System.String[]

    An array of paths that represent items that should be added.

  • isRecursive
    Type: System.Boolean

    True to recurse through subitems; otherwise, false.

  • fileType
    Type: System.String

    The file type for the new item. May be null.

  • treatMissingItemsAsFiles
    Type: System.Boolean

    True to assume that items that are missing on disk are files.

  • silent
    Type: System.Boolean

    Specifies whether the server should return Get operations.

Return Value

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

.NET Framework Security

See Also

Reference

Workspace Class

PendAdd Overload

Microsoft.TeamFoundation.VersionControl.Client Namespace