Compartir a través de


IAttachmentOwner.CreateAttachment (Método) (String)

Crea datos adjuntos a partir de un archivo.

Espacio de nombres:  Microsoft.TeamFoundation.TestManagement.Client
Ensamblado:  Microsoft.TeamFoundation.TestManagement.Client (en Microsoft.TeamFoundation.TestManagement.Client.dll)

Sintaxis

'Declaración
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

Parámetros

  • localFileName
    Tipo: String

    Ruta de acceso completa al archivo que se va a adjuntar.

Valor devuelto

Tipo: Microsoft.TeamFoundation.TestManagement.Client.ITestAttachment
Nuevos datos adjuntos.

Comentarios

Cuando el objeto se agrega y se guarda, el archivo especificado se cargará al servidor o se pondrá en cola para su carga. Debe continuar siendo legible hasta que la carga haya finalizado. Los datos adjuntos se agregan al servidor llamando al método Add.

Seguridad de .NET Framework

Vea también

Referencia

IAttachmentOwner Interfaz

CreateAttachment (Sobrecarga)

Microsoft.TeamFoundation.TestManagement.Client (Espacio de nombres)

ITestAttachment