TeamFoundationFileService.UploadFile-Methode (TeamFoundationRequestContext, Stream, array<Byte[], Int64, CompressionType, OwnerId, String, Int32)
Lädt die angegebene Datei dem Blob-Speicher hoch
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
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
)
Parameter
- requestContext
Typ: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
- content
Typ: System.IO.Stream
- hashValue
Typ: array<System.Byte[]
- uncompressedLength
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
Rückgabewert
Typ: System.Int32
.NET Framework-Sicherheit
- Volle Vertrauenswürdigkeit für den unmittelbaren Aufrufer. Dieser Member kann von nur teilweise vertrauenswürdigem Code nicht verwendet werden. Weitere Informationen finden Sie unter Verwenden von Bibliotheken aus teilweise vertrauenswürdigem Code.