OneDriveConnector.GetFileContentStreamAsync(String, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.