SynchronizationEngineHostWriteToFileAsync Method |
Writes the contents of a stream to a file asynchronously.
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<string> WriteToFileAsync(
string parentPath,
string fileName,
bool generateUniqueName,
Stream stream
)
Public MustOverride Function WriteToFileAsync (
parentPath As String,
fileName As String,
generateUniqueName As Boolean,
stream As Stream
) As Task(Of String)
public:
virtual Task<String^>^ WriteToFileAsync(
String^ parentPath,
String^ fileName,
bool generateUniqueName,
Stream^ stream
) abstract
abstract WriteToFileAsync :
parentPath : string *
fileName : string *
generateUniqueName : bool *
stream : Stream -> Task<string>
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:
TaskStringThe name of the file that was written to.
See Also