Compartilhar via


Método TeamFoundationFileService.UploadFile (TeamFoundationRequestContext, Stream, array<Byte[], Int64, CompressionType, OwnerId, String, Int32)

Carrega o arquivo fornecido no repositório de blob

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (em Microsoft.TeamFoundation.Framework.Server.dll)

Sintaxe

'Declaração
Public Function UploadFile ( _
    requestContext As TeamFoundationRequestContext, _
    content As Stream, _
    hashValue As Byte(), _
    uncompressedLength As Long, _
    compressionType As CompressionType, _
    ownerId As OwnerId, _
    fileName As String, _
    relatedFileId As Integer _
) As Integer
public int UploadFile(
    TeamFoundationRequestContext requestContext,
    Stream content,
    byte[] hashValue,
    long uncompressedLength,
    CompressionType compressionType,
    OwnerId ownerId,
    string fileName,
    int relatedFileId
)

Parâmetros

Valor de retorno

Tipo: System.Int32

Segurança do .NET Framework

Consulte também

Referência

TeamFoundationFileService Classe

Sobrecargas UploadFile

Namespace Microsoft.TeamFoundation.Framework.Server