MobileFileSaveAsync Method (Stream, String, Boolean) |
Saves any changes to the file back to the service. If saveIfOffline is true, it will cache the changes incase of offline.
Namespace: Oracle.Cloud.Mobile.Synchronization.MobileEndpointAssemblies: Oracle.Cloud.Mobile.Synchronization.PCL (in Oracle.Cloud.Mobile.Synchronization.PCL.dll) Version: 16.1.3.1 (16.1.3.1)
Oracle.Cloud.Mobile (in Oracle.Cloud.Mobile.dll) Version: 16.1.3.1 (16.1.3.1)
Syntaxpublic Task SaveAsync(
Stream dataStream,
string contentType,
bool saveIfOffline
)
Public Function SaveAsync (
dataStream As Stream,
contentType As String,
saveIfOffline As Boolean
) As Task
public:
Task^ SaveAsync(
Stream^ dataStream,
String^ contentType,
bool saveIfOffline
)
member SaveAsync :
dataStream : Stream *
contentType : string *
saveIfOffline : bool -> Task
Parameters
- dataStream
- Type: System.IOStream
The stream whose contents are to be saved. - contentType
- Type: SystemString
The media type of the stream. - saveIfOffline
- Type: SystemBoolean
If true will cache updates locally and sync them back to the service if the device is offline, if false will fail if the device is offline.
Return Value
Type:
TaskAn awaitable object.
See Also