Compartilhar via


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

 

Cria um anexo para um caso de teste usando a matriz de bytes fornecida.

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 do qual extrair o anexo.

  • length
    Type: System.Int32

    O comprimento da matriz para usar para criar o anexo.

Valor de retorno

Type: Microsoft.TeamFoundation.TestManagement.Client.ITestAttachment

Um anexo de teste.

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

Retornar ao topo