Metodo TeamFoundationFileService.UploadFile (TeamFoundationRequestContext, Int32%, Stream, array<Byte , Int64, Int64, 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, _
ByRef fileId As Integer, _
content As Stream, _
hashValue As Byte(), _
compressedLength As Long, _
uncompressedLength As Long, _
offsetFrom As Long, _
compressionType As CompressionType, _
ownerId As OwnerId, _
fileName As String, _
relatedFileId As Integer _
) As Boolean
public bool UploadFile(
TeamFoundationRequestContext requestContext,
ref int fileId,
Stream content,
byte[] hashValue,
long compressedLength,
long uncompressedLength,
long offsetFrom,
CompressionType compressionType,
OwnerId ownerId,
string fileName,
int relatedFileId
)
Parametri
- requestContext
Tipo: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
- fileId
Tipo: System.Int32%
- content
Tipo: System.IO.Stream
- hashValue
Tipo: array<System.Byte[]
- compressedLength
Tipo: System.Int64
- uncompressedLength
Tipo: System.Int64
- offsetFrom
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.Boolean
true se il carico è pieno (ovvero questo è l'ultimo blocco)
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.