Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ITestAttachment Interface

 

Encapsulates a stream of bytes that is stored on the test management server.

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

public interface ITestAttachment : INotifyPropertyChanged

NameDescription
System_CAPS_pubpropertyArtifactUri

Gets a uniform resource identifier (URI) that is used by the framework as a unique identifier for this attachment, or to create links to this attachment.

System_CAPS_pubpropertyAttachmentType

Gets or sets the type of the attachment.

System_CAPS_pubpropertyComment

Gets or sets a comment about the attachment.

System_CAPS_pubpropertyIsComplete

Gets a value that indicates whether the attachment is still being uploaded.

System_CAPS_pubpropertyLength

Gets the length of the attachment, in bytes.

System_CAPS_pubpropertyName

Gets or sets the name of the attachment.

System_CAPS_pubpropertyUri

Gets the URI to retrieve the contents of the attachment.

NameDescription
System_CAPS_pubmethodAssociateWorkItem(WorkItem)

Associates the provided work item with this test result attachment.

System_CAPS_pubmethodDisassociateWorkItem(WorkItem)

Removes an existing association between the provided work item and this attachment.

System_CAPS_pubmethodDownloadToArray(Byte[], Int32)

Downloads the attachment contents to the provided byte array after the associated work item has been saved to the server.

System_CAPS_pubmethodDownloadToFile(String)

Downloads the attachment contents to the named file after the associated work item has been saved to the server.

NameDescription
System_CAPS_pubeventPropertyChanged

(Inherited from INotifyPropertyChanged.)

The content is uploaded to the server when the object that owns the attachment is saved. The content is downloaded from the server by using either the DownloadToArray or DownloadToFile methods.

This interface cannot be derived from.

Return to top
Show: