Compartir a través de


LargeFileUploadTask<T> Constructor

Definition

Task to help with resume able large file uploads. Generates slices based on uploadSession information, and can control uploading of requests/>

public LargeFileUploadTask (Microsoft.Graph.IUploadSession uploadSession, System.IO.Stream uploadStream, int maxSliceSize = -1, Microsoft.Graph.IBaseClient baseClient = default);
new Microsoft.Graph.LargeFileUploadTask<'T> : Microsoft.Graph.IUploadSession * System.IO.Stream * int * Microsoft.Graph.IBaseClient -> Microsoft.Graph.LargeFileUploadTask<'T>
Public Sub New (uploadSession As IUploadSession, uploadStream As Stream, Optional maxSliceSize As Integer = -1, Optional baseClient As IBaseClient = Nothing)

Parameters

uploadSession
IUploadSession

Session information of type IUploadSession>

uploadStream
Stream

Readable, seekable stream to be uploaded. Length of session is determined via uploadStream.Length

maxSliceSize
Int32

Max size of each slice to be uploaded. Multiple of 320 KiB (320 * 1024) is required.

baseClient
IBaseClient

IBaseClient to use for making upload requests. The client should not set Auth headers as upload urls do not need them. If less than 0, default value of 5 MiB is used. .

Applies to