Język

GestureStore.LoadAsync Method

Definition

Overloads

Name Description
LoadAsync(Stream, Boolean)

Runs the synchronous load operation on a thread-pool thread with the specified stream-closing behavior.

LoadAsync(Stream)

Runs the synchronous load operation on a thread-pool thread.

LoadAsync(Stream, Boolean)

Runs the synchronous load operation on a thread-pool thread with the specified stream-closing behavior.

public System.Threading.Tasks.Task LoadAsync(System.IO.Stream? stream, bool closeStream);
member this.LoadAsync : System.IO.Stream * bool -> System.Threading.Tasks.Task

Parameters

stream
Stream

The stream from which to read serialized gesture data.

closeStream
Boolean

true to close the input stream when loading finishes, including after a read failure; false to leave it open.

Returns

A task that represents completion of the load 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

LoadAsync(Stream)

Runs the synchronous load operation on a thread-pool thread.

public System.Threading.Tasks.Task LoadAsync(System.IO.Stream? stream);
member this.LoadAsync : System.IO.Stream -> System.Threading.Tasks.Task

Parameters

stream
Stream

The stream from which to read serialized gesture data. This overload leaves the stream open.

Returns

A task that represents completion of the load 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