FileInformation.OpenTransactedWriteAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
OpenTransactedWriteAsync() |
打开可用于事务写入操作的文件的随机访问流。 |
OpenTransactedWriteAsync(StorageOpenOptions) |
使用指定选项打开可用于事务写入操作的文件的随机访问流。 |
OpenTransactedWriteAsync()
打开可用于事务写入操作的文件的随机访问流。
public:
virtual IAsyncOperation<StorageStreamTransaction ^> ^ OpenTransactedWriteAsync() = OpenTransactedWriteAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<StorageStreamTransaction> OpenTransactedWriteAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<StorageStreamTransaction> OpenTransactedWriteAsync();
function openTransactedWriteAsync()
Public Function OpenTransactedWriteAsync () As IAsyncOperation(Of StorageStreamTransaction)
返回
此方法完成后,它将返回 StorageStreamTransaction ,其中包含随机访问流和可用于完成事务的方法。
实现
- 属性
另请参阅
适用于
OpenTransactedWriteAsync(StorageOpenOptions)
使用指定选项打开可用于事务写入操作的文件的随机访问流。
public:
virtual IAsyncOperation<StorageStreamTransaction ^> ^ OpenTransactedWriteAsync(StorageOpenOptions options) = OpenTransactedWriteAsync;
/// [Windows.Foundation.Metadata.Overload("OpenTransactedWriteWithOptionsAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<StorageStreamTransaction> OpenTransactedWriteAsync(StorageOpenOptions const& options);
[Windows.Foundation.Metadata.Overload("OpenTransactedWriteWithOptionsAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<StorageStreamTransaction> OpenTransactedWriteAsync(StorageOpenOptions options);
function openTransactedWriteAsync(options)
Public Function OpenTransactedWriteAsync (options As StorageOpenOptions) As IAsyncOperation(Of StorageStreamTransaction)
参数
- options
- StorageOpenOptions
枚举值的按位组合,指定用于打开流的选项。
返回
此方法完成后,它将返回 StorageStreamTransaction ,其中包含随机访问流和可用于完成事务的方法。
实现
- 属性