Share via


ITestManagementTeamProject.DownloadAttachments Method

Downloads a set of attachments to the specified paths.

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

Syntax

'Declaration
Sub DownloadAttachments ( _
    attachments As IList(Of ITestAttachment), _
    localFiles As IList(Of String) _
)
void DownloadAttachments(
    IList<ITestAttachment> attachments,
    IList<string> localFiles
)
void DownloadAttachments(
    IList<ITestAttachment^>^ attachments, 
    IList<String^>^ localFiles
)
abstract DownloadAttachments : 
        attachments:IList<ITestAttachment> * 
        localFiles:IList<string> -> unit
function DownloadAttachments(
    attachments : IList<ITestAttachment>, 
    localFiles : IList<String>
)

Parameters

  • attachments
    Type: IList<ITestAttachment>

    List of attachments to retrieve.

  • localFiles
    Type: IList<String>

    File names in which to put attachments. This list must be the same length as attachments.

Remarks

If an error occurs, the method throws an exception and stops. The local files are left in an undefined state.

.NET Framework Security

See Also

Reference

ITestManagementTeamProject Interface

Microsoft.TeamFoundation.TestManagement.Client Namespace