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
- requestContext
Tipo: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
- content
Tipo: System.IO.Stream
- hashValue
Tipo: array<System.Byte[]
- uncompressedLength
Tipo: System.Int64
- compressionType
Tipo: Microsoft.TeamFoundation.Framework.Server.CompressionType
- ownerId
Tipo: Microsoft.TeamFoundation.Framework.Server.OwnerId
- fileName
Tipo: System.String
- relatedFileId
Tipo: System.Int32
Valor de retorno
Tipo: System.Int32
Segurança do .NET Framework
- Confiança total para o chamador imediato. O membro não pode ser usado por código parcialmente confiável. Para obter mais informações, consulte Usando bibliotecas de código parcialmente confiável.