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::DownloadToArray Method (array<Byte>^, Int32)

 

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

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

void DownloadToArray(
	array<unsigned char>^ contents,
	int offset
)

Parameters

contents
Type: array<System::Byte>^

The byte array to receive the attachment contents from the server.

offset
Type: System::Int32

The starting position in the provided array to begin to copy the contents.

If this DownloadToArray method is called before the attachment has been completely uploaded, the method returns the local file as a byte array and does not throw an exception.

Return to top
Show: