File.FinishUpload - Méthode
Uploads the last file fragment and commits the file. The current file content is changed when this method completes.
Espace de noms : Microsoft.SharePoint.Client
Assemblys : Microsoft.SharePoint.Client.Silverlight (dans Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client.Phone (dans Microsoft.SharePoint.Client.Phone.dll) Microsoft.SharePoint.Client (dans Microsoft.SharePoint.Client.dll)
Syntaxe
'Déclaration
Public Function FinishUpload ( _
uploadId As Guid, _
fileOffset As Long, _
stream As Stream _
) As File
'Utilisation
Dim instance As File
Dim uploadId As Guid
Dim fileOffset As Long
Dim stream As Stream
Dim returnValue As File
returnValue = instance.FinishUpload(uploadId, _
fileOffset, stream)
public File FinishUpload(
Guid uploadId,
long fileOffset,
Stream stream
)
Paramètres
uploadId
Type : System.GuidThe unique identifier of the upload session.
fileOffset
Type : System.Int64The size of the offset into the file where the fragment starts.
stream
Type : System.IO.StreamThe stream that contains the last fragment to upload.
Valeur renvoyée
Type : Microsoft.SharePoint.Client.File
The current SPFile.
Remarques
Use the uploadId value that was passed to the StartUpload(Guid, Stream) method that started the upload session.
This method is currently available only on Office 365.