Metoda TeamFoundationFileService.UploadFile — (TeamFoundationRequestContext, Int32%, Stream, array<Byte , Int64, Int64, Int64, CompressionType, OwnerId, String, Int32)
Program wysyła danego pliku magazynu Blob
Przestrzeń nazw: Microsoft.TeamFoundation.Framework.Server
Zestaw: Microsoft.TeamFoundation.Framework.Server (w Microsoft.TeamFoundation.Framework.Server.dll)
Składnia
'Deklaracja
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
)
Parametry
- requestContext
Typ: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
- fileId
Typ: System.Int32%
- content
Typ: System.IO.Stream
- hashValue
Typ: array<System.Byte[]
- compressedLength
Typ: System.Int64
- uncompressedLength
Typ: System.Int64
- offsetFrom
Typ: System.Int64
- compressionType
Typ: Microsoft.TeamFoundation.Framework.Server.CompressionType
- ownerId
Typ: Microsoft.TeamFoundation.Framework.Server.OwnerId
- fileName
Typ: System.String
- relatedFileId
Typ: System.Int32
Wartość zwracana
Typ: System.Boolean
wartość true, jeżeli przekazywanie jest pełny (to jest ostatni fragment)
Zabezpieczenia programu .NET Framework
- Pełne zaufanie do bezpośredniego wywołującego. Tego elementu członkowskiego nie można używać w kodzie częściowo zaufanym. Aby uzyskać więcej informacji, zobacz Przy użyciu bibliotek z częściowo zaufanego kodu..