Share via


ITestStep.CreateAttachment Method

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

'Declaration
Function CreateAttachment ( _
    localFileName As String _
) As ITestAttachment
ITestAttachment CreateAttachment(
    string localFileName
)
ITestAttachment^ CreateAttachment(
    String^ localFileName
)
abstract CreateAttachment : 
        localFileName:string -> ITestAttachment
function CreateAttachment(
    localFileName : String
) : ITestAttachment

Parameters

  • localFileName
    Type: String

    The 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.

.NET Framework Security

See Also

Reference

ITestStep Interface

Microsoft.TeamFoundation.TestManagement.Client Namespace

Attachments

ITestAttachment