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.
ITestCase::CreateAttachment Method (array<Byte>^, Int32, Int32)
Creates an attachment for a test case by using the provided byte array.
Assembly: Microsoft.TeamFoundation.TestManagement.Client (in Microsoft.TeamFoundation.TestManagement.Client.dll)
ITestAttachment^ CreateAttachment( array<unsigned char>^ contents, int offset, int length )
Parameters
- contents
-
Type:
array<System::Byte>^
A byte array from which to extract the attachment.
- offset
-
Type:
System::Int32
The starting element in the array.
- length
-
Type:
System::Int32
The length of the array to use to create the attachment.
Return Value
Type: Microsoft.TeamFoundation.TestManagement.Client::ITestAttachment^A test attachment.
When the object owning this attachment is saved, the contents will be uploaded to the TCM server. The array should not be modified before then.
Show: