ITestAttachment.DownloadToArray Method (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)

Syntax

void DownloadToArray(
    byte[] contents,
    int offset
)
void DownloadToArray(
    array<unsigned char>^ contents,
    int offset
)
abstract DownloadToArray : 
        contents:byte[] *
        offset:int -> unit
Sub DownloadToArray (
    contents As Byte(),
    offset As Integer
)

Parameters

  • contents
    Type: 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.

Remarks

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.

See Also

DownloadToArray
ITestAttachment Interface
Microsoft.TeamFoundation.TestManagement.Client Namespace

Return to top