TeamFoundationFileService.UploadFile 메서드 (TeamFoundationRequestContext, Int32%, Stream, array<Byte[], Int64, Int64, Int64, CompressionType, OwnerId, String, Int32, Boolean)
주어진된 파일을 Blob 저장소에 업로드
네임스페이스: Microsoft.TeamFoundation.Framework.Server
어셈블리: Microsoft.TeamFoundation.Framework.Server(Microsoft.TeamFoundation.Framework.Server.dll)
구문
‘선언
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, _
compressContent As Boolean _
) 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,
bool compressContent
)
매개 변수
- requestContext
형식: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
CompressContent에 업로드 하기 전에 콘텐츠 스트림을 압축 UploadFile 원인 true로 설정 합니다.압축 실패 하면 결과 원본 파일 보다 큰 파일에 저장 됩니다 또는 압축 되지 않은 상태로 있습니다.참고: compressContent가 true이 고, 다른 모든 매개 변수를 설정 해야 수 집합 스트림을 저장 하려고 했던 것 처럼 압축 (즉, compressedLength 및 uncompressedLength 모두 설정 내용입니다.길이)입니다.
- fileId
형식: System.Int32%
- content
형식: System.IO.Stream
- hashValue
형식: array<System.Byte[]
- compressedLength
형식: System.Int64
- uncompressedLength
형식: System.Int64
- offsetFrom
형식: System.Int64
- compressionType
형식: Microsoft.TeamFoundation.Framework.Server.CompressionType
- fileName
형식: System.String
- relatedFileId
형식: System.Int32
- compressContent
형식: System.Boolean
반환 값
형식: System.Boolean
업로드 (예: 완료 된 경우 true 이것은 마지막 부분)
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.