ITestRun.CreateAttachment Method (array<Byte , Int32, Int32)
Creates an attachment for a test result from the provided byte array.
Namespace: Microsoft.TeamFoundation.TestManagement.Client
Assembly: Microsoft.TeamFoundation.TestManagement.Client (in Microsoft.TeamFoundation.TestManagement.Client.dll)
Syntax
'Declaration
Function CreateAttachment ( _
contents As Byte(), _
offset As Integer, _
length As Integer _
) As ITestAttachment
ITestAttachment CreateAttachment(
byte[] contents,
int offset,
int length
)
ITestAttachment^ CreateAttachment(
array<unsigned char>^ contents,
int offset,
int length
)
abstract CreateAttachment :
contents:byte[] *
offset:int *
length:int -> ITestAttachment
function CreateAttachment(
contents : byte[],
offset : int,
length : int
) : ITestAttachment
Parameters
- contents
Type: array<System.Byte[]
An array of bytes that contain the attachment content.
- offset
Type: System.Int32
The start point in the byte array for the content.
- length
Type: System.Int32
The length of the desired segment in the byte array.
Return Value
Type: Microsoft.TeamFoundation.TestManagement.Client.ITestAttachment
A test attachment object.
.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.