Поделиться через


BuildDropProvider.CopyDirectory Method (String, String, array<String )

Recursively copies the contents of one directory into another and renames items in the existing list if they already exist on the server

Namespace:  Microsoft.TeamFoundation.Build.Workflow.Activities
Assembly:  Microsoft.TeamFoundation.Build.Workflow (in Microsoft.TeamFoundation.Build.Workflow.dll)

Syntax

'Declaration
Public MustOverride Function CopyDirectory ( _
    sourceDirectory As String, _
    targetDirectory As String, _
    renameIfExists As String() _
) As String()
public abstract string[] CopyDirectory(
    string sourceDirectory,
    string targetDirectory,
    string[] renameIfExists
)
public:
virtual array<String^>^ CopyDirectory(
    String^ sourceDirectory, 
    String^ targetDirectory, 
    array<String^>^ renameIfExists
) abstract
abstract CopyDirectory : 
        sourceDirectory:string * 
        targetDirectory:string * 
        renameIfExists:string[] -> string[] 
public abstract function CopyDirectory(
    sourceDirectory : String, 
    targetDirectory : String, 
    renameIfExists : String[]
) : String[]

Parameters

  • sourceDirectory
    Type: System.String

    The source directory of the copy operation

  • targetDirectory
    Type: System.String

    The target directory of the copy operation

  • renameIfExists
    Type: array<System.String[]

    The list of local items that must be renamed in case they already exist on the server

Return Value

Type: array<System.String[]
The list of (possibly) renamed local items

.NET Framework Security

See Also

Reference

BuildDropProvider Class

CopyDirectory Overload

Microsoft.TeamFoundation.Build.Workflow.Activities Namespace