Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates an attachment to this test result by using the given byte array, ___location, and length.
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[]
A byte array of data.
- offset
Type: System.Int32
The starting point in the byte array.
- length
Type: System.Int32
The length of the piece of data to attach.
Return Value
Type: Microsoft.TeamFoundation.TestManagement.Client.ITestAttachment
The attachment.
.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.