Description
Use this method to attach a file to the item that is stored in an issue-tracking system and to that the IssueTrackingItem object provides access. The file contents will be copied into the issue-tracking database.
Declaration
IssueTrackingItemObj.AttachFile(FileName)
IssueTrackingItemObj | An expression, variable or parameter that specifies a reference to an IssueTrackingItem object | |||
FileName | [in] | Required | String | |
Result | None |
Applies To
The method is applied to the following object:
Parameters
The method has the following parameter:
FileName
Specifies the path and name of the file to be attached to the item.
Result Value
None.
Example
To view an example that demonstrates how to use the AttachFile
method, see the Using Templates From Scripts section of the Using Issue-Tracking Templates From Tests help topic.
See Also
AttachFileLink Method
Integration With Issue-Tracking Systems
Using Issue-Tracking Templates From Tests