共用方式為


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 引進)

另請參閱

適用於