InkStrokeContainer.SaveAsync 方法

定义

重载

SaveAsync(IOutputStream)

异步将 InkStrokeContainer 管理的 InkStroke 集合中的所有 InkStroke 对象保存到指定的流中。

SaveAsync(IOutputStream, InkPersistenceFormat)

以异步方式将 InkStroke 集合中由 InkStrokeContainer 管理的所有 InkStroke 对象以指定的格式保存到指定的流中。

SaveAsync(IOutputStream)

异步将 InkStrokeContainer 管理的 InkStroke 集合中的所有 InkStroke 对象保存到指定的流中。

public:
 virtual IAsyncOperationWithProgress<unsigned int, unsigned int> ^ SaveAsync(IOutputStream ^ outputStream) = SaveAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperationWithProgress<uint32_t, uint32_t> SaveAsync(IOutputStream const& outputStream);
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Overload("SaveAsync")]
IAsyncOperationWithProgress<uint32_t, uint32_t> SaveAsync(IOutputStream const& outputStream);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperationWithProgress<uint,uint> SaveAsync(IOutputStream outputStream);
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Overload("SaveAsync")]
public IAsyncOperationWithProgress<uint,uint> SaveAsync(IOutputStream outputStream);
function saveAsync(outputStream)
Public Function SaveAsync (outputStream As IOutputStream) As IAsyncOperationWithProgress(Of UInteger, UInteger)

参数

outputStream
IOutputStream

目标流。 IRandomAccessStream (要求可以改为指定 IOutputStream) 对象。

返回

IAsyncOperationWithProgress<UInt32,UInt32>

Windows.Foundation.IAsyncOperationWithProgress<unsigned int,unsigned int>

IAsyncOperationWithProgress<uint32_t,uint32_t>

异步操作的状态,表示发送的字节数。 有关详细信息,请参阅 WriteAsync 方法。

实现

属性

另请参阅

适用于

SaveAsync(IOutputStream, InkPersistenceFormat)

以异步方式将 InkStroke 集合中由 InkStrokeContainer 管理的所有 InkStroke 对象以指定的格式保存到指定的流中。

public:
 virtual IAsyncOperationWithProgress<unsigned int, unsigned int> ^ SaveAsync(IOutputStream ^ outputStream, InkPersistenceFormat inkPersistenceFormat) = SaveAsync;
/// [Windows.Foundation.Metadata.Overload("SaveWithFormatAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperationWithProgress<uint32_t, uint32_t> SaveAsync(IOutputStream const& outputStream, InkPersistenceFormat const& inkPersistenceFormat);
[Windows.Foundation.Metadata.Overload("SaveWithFormatAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperationWithProgress<uint,uint> SaveAsync(IOutputStream outputStream, InkPersistenceFormat inkPersistenceFormat);
function saveAsync(outputStream, inkPersistenceFormat)
Public Function SaveAsync (outputStream As IOutputStream, inkPersistenceFormat As InkPersistenceFormat) As IAsyncOperationWithProgress(Of UInteger, UInteger)

参数

outputStream
IOutputStream

目标流。 IRandomAccessStream (要求可以改为指定 IOutputStream) 对象。

inkPersistenceFormat
InkPersistenceFormat

保存墨迹输入的格式。

返回

IAsyncOperationWithProgress<UInt32,UInt32>

Windows.Foundation.IAsyncOperationWithProgress<unsigned int,unsigned int>

IAsyncOperationWithProgress<uint32_t,uint32_t>

异步操作的状态,表示发送的字节数。 有关详细信息,请参阅 WriteAsync 方法。

属性

Windows 要求

设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)

另请参阅

适用于