ITestStep.CreateAttachment Method (String)
Creates a new attachment from a local file.
Namespace: Microsoft.TeamFoundation.TestManagement.Client
Assembly: Microsoft.TeamFoundation.TestManagement.Client (in Microsoft.TeamFoundation.TestManagement.Client.dll)
Syntax
ITestAttachment CreateAttachment(
string localFileName
)
ITestAttachment^ CreateAttachment(
String^ localFileName
)
abstract CreateAttachment :
localFileName:string -> ITestAttachment
Function CreateAttachment (
localFileName As String
) As ITestAttachment
Parameters
localFileName
Type: System.StringThe path and name of the file to attach.
Return Value
Type: Microsoft.TeamFoundation.TestManagement.Client.ITestAttachment
A new test attachment.
Remarks
The attachment must be added to the Attachments after it is created.
See Also
Attachments
ITestAttachment
ITestStep Interface
Microsoft.TeamFoundation.TestManagement.Client Namespace
Return to top