Compartilhar via


Método ITestCaseResult.CreateAttachment (Byte[], Int32, Int32)

 

Cria um anexo a esse resultado usando a matriz de bytes fornecido, a localização e a extensão.

Namespace:   Microsoft.TeamFoundation.TestManagement.Client
Assembly:  Microsoft.TeamFoundation.TestManagement.Client (em Microsoft.TeamFoundation.TestManagement.Client.dll)

Sintaxe

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 As Byte(),
    offset As Integer,
    length As Integer
) As ITestAttachment

Parâmetros

  • contents
    Type: System.Byte[]

    Uma matriz de bytes de dados.

  • offset
    Type: System.Int32

    O ponto inicial da matriz de bytes.

  • length
    Type: System.Int32

    O comprimento da parte dos dados para anexar.

Valor de retorno

Type: Microsoft.TeamFoundation.TestManagement.Client.ITestAttachment

O anexo.

Comentários

Quando o objeto proprietário este anexo for salvo, o conteúdo será carregado no servidor TCM. A matriz não deve ser modificada antes.

Consulte também

ITestAttachment
CreateAttachment Sobrecarga
Interface ITestCaseResult
Namespace Microsoft.TeamFoundation.TestManagement.Client

Retornar ao topo