Click or drag to resize
SynchronizationEngineHostWriteToFileAsync Method
Writes the contents of a stream to a file asynchronously.

Namespace: Oracle.Cloud.Mobile.Synchronization
Assembly: Oracle.Cloud.Mobile.Synchronization.PCL (in Oracle.Cloud.Mobile.Synchronization.PCL.dll) Version: 16.1.3.1 (16.1.3.1)
Syntax
public abstract Task<string> WriteToFileAsync(
	string parentPath,
	string fileName,
	bool generateUniqueName,
	Stream 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.
generateUniqueName
Type: SystemBoolean
If a file with name fileName exists, setting generateUniqueName to true will cause a new file to be generated with a unique name. If generateUniqueName is false then the exiting file will be overwritten. If no file with name fileName already exists, then a new file with that name will be created.
stream
Type: System.IOStream
The stream to write to the file.

Return Value

Type: TaskString
The name of the file that was written to.
See Also