Share via


ITestAttachment.DownloadToFile Method

Downloads the attachment contents to the named file 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 DownloadToFile ( _
    localFileName As String _
)
void DownloadToFile(
    string localFileName
)
void DownloadToFile(
    String^ localFileName
)
abstract DownloadToFile : 
        localFileName:string -> unit
function DownloadToFile(
    localFileName : String
)

Parameters

  • localFileName
    Type: String

    Fully qualified name of the file.

Remarks

If this M:Microsoft.TeamFoundation.TestManagement.Client.ITestAttachment.DownloadToFile(System.String) method is called before the attachment has been completely uploaded, the method returns the local file and does not throw an exception.

.NET Framework Security

See Also

Reference

ITestAttachment Interface

Microsoft.TeamFoundation.TestManagement.Client Namespace

DownloadToArray