ITestAttachment.DownloadToArray Method

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

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

Parameters

  • contents
    Type: array<Byte[]

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

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

.NET Framework Security

See Also

Reference

ITestAttachment Interface

Microsoft.TeamFoundation.TestManagement.Client Namespace

DownloadToArray