IAttachmentUploadEntry Interface

 

Represents the information in IAttachmentUploadManager to track the background upload of a single attachment.

Namespace:   Microsoft.TeamFoundation.TestManagement.Client
Assembly:  Microsoft.TeamFoundation.TestManagement.Client (in Microsoft.TeamFoundation.TestManagement.Client.dll)

Syntax

public interface IAttachmentUploadEntry : INotifyPropertyChanged, 
    IDisposable
public interface class IAttachmentUploadEntry : INotifyPropertyChanged, 
    IDisposable
type IAttachmentUploadEntry = 
    interface
        interface INotifyPropertyChanged
        interface IDisposable
    end
Public Interface IAttachmentUploadEntry
    Inherits INotifyPropertyChanged, IDisposable

Properties

Name Description
System_CAPS_pubproperty Attachment

Gets an ITestAttachment that represents the associated attachment.

System_CAPS_pubproperty BytesTransferred

Gets the number of bytes that have been uploaded.

System_CAPS_pubproperty DateCompleted

Gets the date and time that the upload was completed.

System_CAPS_pubproperty DateStarted

Gets the date and time that the upload was started.

System_CAPS_pubproperty IsMarkedForDeletion

Gets a value that indicates whether the source of the attachment should be deleted after the upload is completed or canceled.

System_CAPS_pubproperty Length

Returns total uncompressed length of the attachment

System_CAPS_pubproperty LocalFileName

Gets the file name for the local attachment file.

System_CAPS_pubproperty PauseReason

If the upload has been paused, gets the reason that it has been paused.

System_CAPS_pubproperty ProjectName

Gets the name of the test project.

System_CAPS_pubproperty Server

Gets the server to which the attachment is being uploaded.

System_CAPS_pubproperty TestResultId

Gets the ID for the test result.

System_CAPS_pubproperty TestRunId

Gets the ID for the test run.

System_CAPS_pubproperty UploadState

Gets the current state of the upload.

Methods

Name Description
System_CAPS_pubmethod Cancel()

Stops the upload and, if the source of the attachment is marked for deletion, deletes the source, then changes the state to Cancelled.

System_CAPS_pubmethod Dispose()

(Inherited from IDisposable.)

System_CAPS_pubmethod Enqueue()

Adds the attachment to the queue and starts uploading as soon as possible.

System_CAPS_pubmethod Pause()

Stops uploading the attachment until the Enqueue method is called.

Events

Name Description
System_CAPS_pubevent PropertyChanged

(Inherited from INotifyPropertyChanged.)

See Also

INotifyPropertyChanged
IAttachmentUploadManager
Microsoft.TeamFoundation.TestManagement.Client Namespace

Return to top