SynchronizationEngineHostReadFromFileAsync Method |
Reads the contents of file asynchronously if it exists.
Namespace: Oracle.Cloud.Mobile.SynchronizationAssembly: Oracle.Cloud.Mobile.Synchronization.PCL (in Oracle.Cloud.Mobile.Synchronization.PCL.dll) Version: 16.1.3.1 (16.1.3.1)
Syntaxpublic abstract Task<Stream> ReadFromFileAsync(
string parentPath,
string fileName
)
Public MustOverride Function ReadFromFileAsync (
parentPath As String,
fileName As String
) As Task(Of Stream)
public:
virtual Task<Stream^>^ ReadFromFileAsync(
String^ parentPath,
String^ fileName
) abstract
abstract ReadFromFileAsync :
parentPath : string *
fileName : string -> Task<Stream>
Parameters
- parentPath
- Type: SystemString
The path to the parent folder. - fileName
- Type: SystemString
The name of the file in the parent folder to write to.
Return Value
Type:
TaskStreamThe stream with the file contents, or a 0-byte stream if the file doesn't exist.
See Also