Metodo TeamFoundationFileService.UploadFile (TeamFoundationRequestContext, Stream, array<Byte , Int64, CompressionType, OwnerId, String, Int32)
Carica il file specificato all'archivio dei Blob
Spazio dei nomi: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Sintassi
'Dichiarazione
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
)
Parametri
- 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
Valore restituito
Tipo: System.Int32
Sicurezza di .NET Framework
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per ulteriori informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.