File.ContinueUpload 方法
使用其他片段繼續區段上傳工作階段。目前的檔案內容不會變更。
命名空間: Microsoft.SharePoint.Client
組件: Microsoft.SharePoint.Client.Silverlight (在 Microsoft.SharePoint.Client.Silverlight.dll 中); Microsoft.SharePoint.Client.Phone (在 Microsoft.SharePoint.Client.Phone.dll 中) Microsoft.SharePoint.Client (在 Microsoft.SharePoint.Client.dll 中)
語法
'宣告
Public Function ContinueUpload ( _
uploadId As Guid, _
fileOffset As Long, _
stream As Stream _
) As ClientResult(Of Long)
'用途
Dim instance As File
Dim uploadId As Guid
Dim fileOffset As Long
Dim stream As Stream
Dim returnValue As ClientResult(Of Long)
returnValue = instance.ContinueUpload(uploadId, _
fileOffset, stream)
public ClientResult<long> ContinueUpload(
Guid uploadId,
long fileOffset,
Stream stream
)
參數
uploadId
類型:System.Guid上傳工作階段的唯一識別碼。
fileOffset
類型:System.Int64片段的開始位置的檔案中的位移大小。
stream
類型:System.IO.Stream包含要上傳的片段的資料流。
傳回值
類型:Microsoft.SharePoint.Client.ClientResult<Int64>
上傳總位元組資料的大小。
備註
使用傳遞至開始上傳工作階段StartUpload(Guid, Stream)方法uploadId值。
這個方法是目前僅適用於Office 365。