Condividi tramite


Metodo ITestStep.CreateAttachment

Consente di creare un nuovo allegato da un file locale.

Spazio dei nomi:  Microsoft.TeamFoundation.TestManagement.Client
Assembly:  Microsoft.TeamFoundation.TestManagement.Client (in Microsoft.TeamFoundation.TestManagement.Client.dll)

Sintassi

'Dichiarazione
Function CreateAttachment ( _
    localFileName As String _
) As ITestAttachment
ITestAttachment CreateAttachment(
    string localFileName
)
ITestAttachment^ CreateAttachment(
    String^ localFileName
)
abstract CreateAttachment : 
        localFileName:string -> ITestAttachment
function CreateAttachment(
    localFileName : String
) : ITestAttachment

Parametri

  • localFileName
    Tipo: String

    Percorso e nome del file da associare.

Valore restituito

Tipo: Microsoft.TeamFoundation.TestManagement.Client.ITestAttachment
Nuovo allegato di test.

Note

L'allegato deve essere aggiunto all'oggetto Attachments dopo la creazione.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

ITestStep Interfaccia

Spazio dei nomi Microsoft.TeamFoundation.TestManagement.Client

Attachments

ITestAttachment