将一组附件下载到指定的路径。
命名空间:  Microsoft.TeamFoundation.TestManagement.Client
程序集:  Microsoft.TeamFoundation.TestManagement.Client(在 Microsoft.TeamFoundation.TestManagement.Client.dll 中)
语法
声明
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>
)
参数
- attachments
 类型:System.Collections.Generic.IList<ITestAttachment>
 要检索的附件的列表。
- localFiles
 类型:System.Collections.Generic.IList<String>
 放置附件的文件名称。此列表的长度必须与附件的长度相同。
备注
如果错误发生,则方法会引发异常和停止。 未定义的状态下本地文件位于左边。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。