Copy Copy Copy Copy Class

Definition

Implements the Copy task. Use the Copy element in your project file to create and execute this task. For usage and parameter information, see Copy Task.

This API supports the product infrastructure and is not intended to be used directly from your code.

public ref class Copy : Microsoft::Build::Tasks::TaskExtension, Microsoft::Build::Framework::ICancelableTask
public class Copy : Microsoft.Build.Tasks.TaskExtension, Microsoft.Build.Framework.ICancelableTask
type Copy = class
    inherit TaskExtension
    interface ICancelableTask
    interface ITask
Public Class Copy
Inherits TaskExtension
Implements ICancelableTask
Inheritance
Implements

Constructors

Copy() Copy() Copy() Copy()

Initializes a new instance of the Copy class.

Properties

BuildEngine BuildEngine BuildEngine BuildEngine

Gets or sets the instance of the IBuildEngine object used by the task.

(Inherited from Task)
BuildEngine2 BuildEngine2 BuildEngine2 BuildEngine2

Gets the instance of the IBuildEngine2 object used by the task.

(Inherited from Task)
BuildEngine3 BuildEngine3 BuildEngine3 BuildEngine3

Gets the instance of the IBuildEngine3 object used by the task.

(Inherited from Task)
BuildEngine4 BuildEngine4 BuildEngine4 BuildEngine4

Gets the instance of the IBuildEngine4 object used by the task.

(Inherited from Task)
CopiedFiles CopiedFiles CopiedFiles CopiedFiles

Gets the items that were successfully copied.

DestinationFiles DestinationFiles DestinationFiles DestinationFiles

Gets or sets a list of files to copy the source files to.

DestinationFolder DestinationFolder DestinationFolder DestinationFolder

Gets or sets the directory to which you want to copy the files.

HelpKeywordPrefix HelpKeywordPrefix HelpKeywordPrefix HelpKeywordPrefix

Gets or sets the prefix used to compose Help keywords from resource names.

(Inherited from Task)
HostObject HostObject HostObject HostObject

Gets or sets the host object associated with the task.

(Inherited from Task)
Log Log Log Log

Gets an instance of a TaskLoggingHelperExtension containing task logging methods.

(Inherited from TaskExtension)
OverwriteReadOnlyFiles OverwriteReadOnlyFiles OverwriteReadOnlyFiles OverwriteReadOnlyFiles

Gets or sets a Boolean value that indicates whether to overwrite files even if they are marked as read only files.

Retries Retries Retries Retries

How many times to attempt to copy, if all previous attempts failed. Defaults to zero. Warning: using retries may mask a synchronization problem in your build process.

RetryDelayMilliseconds RetryDelayMilliseconds RetryDelayMilliseconds RetryDelayMilliseconds

Delay between any necessary retries. Defaults to 1,000 milliseconds.

SkipUnchangedFiles SkipUnchangedFiles SkipUnchangedFiles SkipUnchangedFiles

Gets or sets a Boolean value that indicates whether the Copy task should skip the copying of files that are unchanged between the source and destination.

SourceFiles SourceFiles SourceFiles SourceFiles

Gets or sets the files to copy.

TaskResources TaskResources TaskResources TaskResources

Gets or sets the culture-specific resources associated with the task.

(Inherited from Task)
UseHardlinksIfPossible UseHardlinksIfPossible UseHardlinksIfPossible UseHardlinksIfPossible

Indicates if hard links should be used.

Methods

Cancel() Cancel() Cancel() Cancel()

Stop and return (in an undefined state) as soon as possible.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
Execute() Execute() Execute() Execute()

Executes the Copy task.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to