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

'Declaration
Public Interface IAttachmentUploadEntry _
    Inherits INotifyPropertyChanged
public interface IAttachmentUploadEntry : INotifyPropertyChanged
public interface class IAttachmentUploadEntry : INotifyPropertyChanged
type IAttachmentUploadEntry =  
    interface
        interface INotifyPropertyChanged
    end
public interface IAttachmentUploadEntry extends INotifyPropertyChanged

The IAttachmentUploadEntry type exposes the following members.

Properties

  Name Description
Public property Attachment Gets an ITestAttachment that represents the associated attachment.
Public property BytesTransferred Gets the number of bytes that have been uploaded.
Public property DateCompleted Gets the date and time that the upload was completed.
Public property DateStarted Gets the date and time that the upload was started.
Public property IsMarkedForDeletion Gets a value that indicates whether the source of the attachment should be deleted after the upload is completed or canceled.
Public property LocalFileName Gets the file name for the local attachment file.
Public property PauseReason If the upload has been paused, gets the reason that it has been paused.
Public property ProjectName Gets the name of the test project.
Public property Server Gets the server to which the attachment is being uploaded.
Public property TestResultId Gets the ID for the test result.
Public property TestRunId Gets the ID for the test run.
Public property UploadState Gets the current state of the upload.

Top

Methods

  Name Description
Public method Cancel Stops the upload and, if the source of the attachment is marked for deletion, deletes the source, then changes the state to Cancelled.
Public method Enqueue Adds the attachment to the queue and starts uploading as soon as possible.
Public method Pause Stops uploading the attachment until the Enqueue method is called.

Top

Events

  Name Description
Public event PropertyChanged Occurs when a property value changes. (Inherited from INotifyPropertyChanged.)

Top

See Also

Reference

Microsoft.TeamFoundation.TestManagement.Client Namespace

INotifyPropertyChanged

IAttachmentUploadManager