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: 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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.