GestureStore.SaveAsync 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.
Overloads
| Name | Description |
|---|---|
| SaveAsync(Stream) |
Runs the synchronous save operation on a thread-pool thread. |
| SaveAsync(Stream, Boolean) |
Runs the synchronous save operation on a thread-pool thread with the specified stream-closing behavior. |
SaveAsync(Stream)
Runs the synchronous save operation on a thread-pool thread.
public System.Threading.Tasks.Task SaveAsync(System.IO.Stream? stream);
member this.SaveAsync : System.IO.Stream -> System.Threading.Tasks.Task
Parameters
- stream
- Stream
The stream to which to write serialized gesture data. This overload flushes the data but leaves the stream open.
Returns
A task that represents completion of the save operation and reports any exception it throws.
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
SaveAsync(Stream, Boolean)
Runs the synchronous save operation on a thread-pool thread with the specified stream-closing behavior.
public System.Threading.Tasks.Task SaveAsync(System.IO.Stream? stream, bool closeStream);
member this.SaveAsync : System.IO.Stream * bool -> System.Threading.Tasks.Task
Parameters
- stream
- Stream
The stream to which to write serialized gesture data.
- closeStream
- Boolean
true to close the output stream when saving finishes, including after a write failure; false to leave it open.
Returns
A task that represents completion of the save operation and reports any exception it throws.
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.