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: StringRuta 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
- Plena confianza para el llamador inmediato. Un código de confianza parcial no puede utilizar este miembro. Para obtener más información, vea Utilizar bibliotecas de código que no es de plena confianza.
Vea también
Referencia
Microsoft.TeamFoundation.TestManagement.Client (Espacio de nombres)