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

ITestRunBase::CreateAttachment Method (array<Byte>^, Int32, Int32)

 

Creates an attachment for a Test Result from a byte array.

Namespace:   Microsoft.TeamFoundation.TestManagement.Client
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>^

Byte array that contains attachment contents.

offset
Type: System::Int32

Index of the first byte that will be used as attachment content, usually 0.

length
Type: System::Int32

Number of bytes in the attachment.

Return Value

Type: Microsoft.TeamFoundation.TestManagement.Client::ITestAttachment^

New attachment object.

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.

Return to top
Show: