Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IAttachmentOwner::CreateAttachment Method (String^)

 

Creates an attachment from a file.

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

ITestAttachment^ CreateAttachment(
	String^ localFileName
)

Parameters

localFileName
Type: System::String^

The fully qualified path for the file to attach.

When the object is added and saved, the specified file will be uploaded to the server or queued for upload. It must continue to be readable until the upload is completed. The attachment is added to the server by calling the Add method.

Return to top
Show: