OneDriveConnector.GetFileContentStreamAsync(String, CancellationToken) Method

Definition

Get the content of a file.

public System.Threading.Tasks.Task<System.IO.Stream> GetFileContentStreamAsync(string filePath, System.Threading.CancellationToken cancellationToken = default);
abstract member GetFileContentStreamAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
override this.GetFileContentStreamAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
Public Function GetFileContentStreamAsync (filePath As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Stream)

Parameters

filePath
String

Path to the remote file.

cancellationToken
CancellationToken

The CancellationToken to monitor for cancellation requests. The default is None.

Returns

Implements

Applies to